Network message class. Used to send messages to clients.
Type: Reference type
Declaration | Description |
---|---|
NetworkMessage@ NetworkMessage(NetworkMessageDest dest, NetworkMessages::NetworkMessageType type, edict_t@ pEdict = null) | Constructor |
NetworkMessage@ NetworkMessage(NetworkMessageDest dest, NetworkMessages::NetworkMessageType type, const Vector& in vecOrigin, edict_t@ pEdict = null) | Constructor |
void End() | Ends the message. Must be called to send the message. |
void WriteByte(uint8 byte) | Writes a byte to the buffer. |
void WriteChar(const string& in szChar) | Writes a character to the buffer. |
void WriteShort(int16 short) | Writes a short to the buffer. |
void WriteLong(int32 long) | Writes a long to the buffer. |
void WriteAngle(float flValue) | Writes an angle to the buffer. |
void WriteCoord(float flValue) | Writes a coordinate to the buffer. |
void WriteVector(const Vector& in vecVector) | Writes a vector to the buffer. |
void WriteString(const string& in szString) | Writes a string to the buffer. |
void WriteEntity(int iEntity) | Writes an entity index to the buffer. |
void WriteEntity(CBaseEntity@ pEntity) | Writes an entity index to the buffer. |
void WriteFloat(float flValue) | Writes a float to the buffer. |