| 237 | |
| 238 | |
| 239 | void cChunk::GetAllData(cChunkDataCallback & a_Callback) |
| 240 | { |
| 241 | a_Callback.HeightMap (&m_HeightMap); |
| 242 | a_Callback.BiomeData (&m_BiomeMap); |
| 243 | a_Callback.BlockTypes (m_BlockTypes); |
| 244 | a_Callback.BlockMeta (m_BlockMeta); |
| 245 | a_Callback.LightIsValid (m_IsLightValid); |
| 246 | a_Callback.BlockLight (m_BlockLight); |
| 247 | a_Callback.BlockSkyLight(m_BlockSkyLight); |
| 248 | |
| 249 | for (cEntityList::iterator itr = m_Entities.begin(); itr != m_Entities.end(); ++itr) |
| 250 | { |
| 251 | a_Callback.Entity(*itr); |
| 252 | } |
| 253 | |
| 254 | for (cBlockEntityList::iterator itr = m_BlockEntities.begin(); itr != m_BlockEntities.end(); ++itr) |
| 255 | { |
| 256 | a_Callback.BlockEntity(*itr); |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | |
| 261 |
no test coverage detected