Exemple #1
0
void UpdateServer::serializefrom( BitStream &src )
{
    m_build_date = src.GetPackedBits(1);
    /*uint32_t t =*/ src.GetPackedBits(1);
    src.GetString(currentVersion);
    src.GetBitArray(clientInfo,sizeof(clientInfo)*8);
    authID = src.GetPackedBits(1);
    authCookie = src.GetBits(32);
    src.GetString(accountName);
}
Exemple #2
0
void getTransformMatrix(BitStream &bs, glm::mat4x3 &src )
{
    if(bs.GetBits(1))
        assert(!"PACKED ARRAY RECEIVED!");
    bs.GetBitArray((uint8_t *)glm::value_ptr(src),sizeof(glm::mat4x3)*8);
}
void NetStructure::getTransformMatrix( BitStream &bs,Matrix4x3 &src )
{
    if(bs.GetBits(1))
        assert(!"PACKED ARRAY RECEIVED!");
    bs.GetBitArray((uint8_t*)&src,12*4*8);
}