#include <ChunkSender.h>
|
virtual void | BiomeMap (const cChunkDef::BiomeMap &a_BiomeMap) override |
|
virtual void | BlockEntity (cBlockEntity *a_Entity) override |
|
virtual void | Entity (cEntity *a_Entity) override |
|
virtual void | Execute (void) override |
| This function, overloaded by the descendants, is called in the new thread. More...
|
|
void | SendChunk (int a_ChunkX, int a_ChunkZ, const WeakClients &a_Clients) |
| Sends the specified chunk to all the specified clients. More...
|
|
Definition at line 50 of file ChunkSender.h.
◆ Super
◆ WeakClients
◆ Priority
Tag indicating urgency of chunk to be sent.
Order MUST be from least to most urgent.
Enumerator |
---|
Low | |
Medium | |
High | |
Critical | |
Definition at line 63 of file ChunkSender.h.
◆ cChunkSender()
cChunkSender::cChunkSender |
( |
cWorld & |
a_World | ) |
|
◆ ~cChunkSender()
cChunkSender::~cChunkSender |
( |
| ) |
|
|
overridevirtual |
◆ BiomeMap()
void cChunkSender::BiomeMap |
( |
const cChunkDef::BiomeMap & |
a_BiomeMap | ) |
|
|
overrideprotectedvirtual |
◆ BlockEntity()
◆ Entity()
void cChunkSender::Entity |
( |
cEntity * |
a_Entity | ) |
|
|
overrideprotectedvirtual |
◆ Execute()
void cChunkSender::Execute |
( |
void |
| ) |
|
|
overrideprotectedvirtual |
This function, overloaded by the descendants, is called in the new thread.
Implements cIsThread.
Definition at line 161 of file ChunkSender.cpp.
◆ QueueSendChunkTo() [1/2]
void cChunkSender::QueueSendChunkTo |
( |
int |
a_ChunkX, |
|
|
int |
a_ChunkZ, |
|
|
Priority |
a_Priority, |
|
|
cClientHandle * |
a_Client |
|
) |
| |
Queues a chunk to be sent to a specific client.
Definition at line 92 of file ChunkSender.cpp.
◆ QueueSendChunkTo() [2/2]
void cChunkSender::QueueSendChunkTo |
( |
int |
a_ChunkX, |
|
|
int |
a_ChunkZ, |
|
|
Priority |
a_Priority, |
|
|
const std::vector< cClientHandle * > & |
a_Clients |
|
) |
| |
◆ SendChunk()
void cChunkSender::SendChunk |
( |
int |
a_ChunkX, |
|
|
int |
a_ChunkZ, |
|
|
const WeakClients & |
a_Clients |
|
) |
| |
|
protected |
Sends the specified chunk to all the specified clients.
Definition at line 194 of file ChunkSender.cpp.
◆ Stop()
void cChunkSender::Stop |
( |
void |
| ) |
|
◆ m_BiomeMap
◆ m_BlockEntities
std::vector<Vector3i> cChunkSender::m_BlockEntities |
|
protected |
◆ m_ChunkInfo
◆ m_CS
◆ m_EntityIDs
std::vector<UInt32> cChunkSender::m_EntityIDs |
|
protected |
◆ m_evtQueue
cEvent cChunkSender::m_evtQueue |
|
protected |
◆ m_SendChunks
std::priority_queue<sChunkQueue> cChunkSender::m_SendChunks |
|
protected |
◆ m_Serializer
An instance of a chunk serializer, held to maintain its internal cache.
Definition at line 110 of file ChunkSender.h.
◆ m_World
The documentation for this class was generated from the following files: