1 #ifndef NETWORK_SYNC_VOXEL_ACCESSOR_TERRAIN_RECEIVER_HPP
2 #define NETWORK_SYNC_VOXEL_ACCESSOR_TERRAIN_RECEIVER_HPP
4 #include "blub/async/predecl.hpp"
5 #include "blub/core/byteArray.hpp"
6 #include "blub/core/globals.hpp"
7 #include "blub/core/sharedPointer.hpp"
8 #include "blub/core/vector.hpp"
9 #include "blub/procedural/voxel/terrain/accessor.hpp"
10 #include "blub/procedural/voxel/terrain/base.hpp"
11 #include "blub/sync/voxel/accessor/multipleTiles/receiver.hpp"
26 template <
class voxelType>
40 for (int32 ind = 0; ind < numLod; ++ind)
42 t_multipleTilesPtr lod(
new t_multipleTiles(todoListenerMaster, ind));
52 t_base::m_lods.clear();
58 BASSERT((uint32)data.size() >
sizeof(uint32));
63 std::istringstream input(std::string(data.data(), data.size()));
67 format >> restOftheData;
69 static_cast<t_multipleTilesPtr
>(
t_base::m_lods[lodIndex])->receivedTileData(restOftheData);
71 void receivedTilePtrData(t_tileDataPtr data)
73 receivedTileData(*data);
90 #endif // NETWORK_SYNC_VOXEL_ACCESSOR_TERRAIN_RECEIVER_HPP
t_lodList m_lods
m_lods container for the lods.
Definition: base.hpp:78
Definition: sharedPointer.hpp:12
Definition: receiver.hpp:27
Definition: receiver.hpp:33
Definition: dispatcher.hpp:29
Definition: byteArray.hpp:17
The base class gets derived by every class in the namesapce terrain. It holds various level of detail...
Definition: predecl.hpp:58
Definition: portable_binary_iarchive.hpp:68
Definition: deadlineTimer.hpp:10
Definition: customVertexInformation.cpp:177