Exemple #1
0
        /************************************/
        /* Custom methods for game project */
        /************************************/
        public static CTransform ReadCTransform(this NetBuffer message)
        {
            CTransform retval = new CTransform();

            retval.Position = message.ReadVector3();
            retval.Scale    = message.ReadVector3();
            retval.Rotation = message.ReadMatrix();
            retval.Frame    = message.ReadMatrix();
            return(retval);
        }
Exemple #2
0
        public static int ReadEntityLight(this NetBuffer message, ref CBody cBody, ref CTransform ctransform,
                                          ref string modelname, ref bool isPlayer)
        {
            int id = message.ReadInt32();

            cBody.Velocity      = message.ReadVector3();
            ctransform.Position = message.ReadVector3();
            ctransform.Rotation = message.ReadMatrix();
            return(id);
        }