CatapultServer
v0.5.0.1 (Elephant)
|
A factory for creating common packet payloads. More...
Static Public Member Functions | |
template<typename TEntity > | |
static PacketPayload | FromEntity (PacketType type, const std::shared_ptr< TEntity > &pEntity) |
Creates a packet payload with the specified packet type around a single entity (pEntity). More... | |
template<typename TEntity > | |
static PacketPayload | FromEntities (PacketType type, const std::vector< std::shared_ptr< TEntity >> &entities) |
Creates a packet payload with the specified packet type around multiple entities. More... | |
template<typename TStructure > | |
static PacketPayload | FromFixedSizeRange (PacketType type, model::EntityRange< TStructure > &&range) |
Creates a packet payload with the specified packet type around a fixed size structure range. More... | |
A factory for creating common packet payloads.
|
inlinestatic |
Creates a packet payload with the specified packet type around multiple entities.
|
inlinestatic |
Creates a packet payload with the specified packet type around a single entity (pEntity).
|
inlinestatic |
Creates a packet payload with the specified packet type around a fixed size structure range.