SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
CommonNetStructures.h File Reference
#include <glm/vec3.hpp>
#include <glm/mat4x3.hpp>
#include "BitStream.h"
#include "Common/GameData/CoXHash.h"
Include dependency graph for CommonNetStructures.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TransformStruct
 
class  ColorAndPartPacker
 The ColorAndPartPacker class is responsible for packing/unpacking colors and part names from BitStream. More...
 

Functions

void storeBitsConditional (BitStream &bs, uint8_t numbits, int bits)
 
int getBitsConditional (BitStream &bs, uint32_t numbits)
 
void storePackedBitsConditional (BitStream &bs, uint8_t numbits, int bits)
 
void storeFloatConditional (BitStream &bs, float val)
 
void storeFloatPacked (BitStream &bs, float val)
 
int getPackedBitsConditional (BitStream &bs, uint8_t numbits)
 
void storeStringConditional (BitStream &bs, const QString &str)
 
void storeVector (BitStream &bs, glm::vec3 &vec)
 
void storeVectorConditional (BitStream &bs, glm::vec3 &vec)
 
void storeTransformMatrix (BitStream &tgt, const glm::mat4x3 &src)
 
void storeTransformMatrix (BitStream &tgt, const TransformStruct &src)
 
void getTransformMatrix (BitStream &bs, glm::mat4x3 &src)
 
void storeCached_Color (BitStream &bs, uint32_t col, ColorHash &color_hash, uint32_t bitcount)
 
void storeCached_String (BitStream &bs, const QString &str, const StringHash &string_hash, uint32_t bitc)
 
uint32_t getCached_Color (BitStream &bs, ColorHash &color_hash, uint32_t bitcount)
 
QString getCached_String (BitStream &bs, const StringHash &string_hash, uint32_t bitcount)
 

Function Documentation

uint32_t getCached_Color ( BitStream bs,
ColorHash color_hash,
uint32_t  bitcount 
)
QString getCached_String ( BitStream bs,
const StringHash string_hash,
uint32_t  bitcount 
)
void storeCached_Color ( BitStream bs,
uint32_t  col,
ColorHash color_hash,
uint32_t  bitcount 
)
void storeCached_String ( BitStream bs,
const QString &  str,
const StringHash string_hash,
uint32_t  bitc 
)