Ejemplo n.º 1
0
        public static PickupEvent read(BinaryReader binaryReader)
        {
            PickupEvent newObj = new PickupEvent();

            newObj.object_id  = binaryReader.ReadUInt32();
            newObj.timestamps = PhysicsTimestampPack.read(binaryReader);
            return(newObj);
        }
Ejemplo n.º 2
0
        public static SetState read(BinaryReader binaryReader)
        {
            SetState newObj = new SetState();

            newObj.object_id  = binaryReader.ReadUInt32();
            newObj.new_state  = binaryReader.ReadUInt32();
            newObj.timestamps = PhysicsTimestampPack.read(binaryReader);
            return(newObj);
        }
Ejemplo n.º 3
0
        public static ObjDescEvent read(BinaryReader binaryReader)
        {
            ObjDescEvent newObj = new ObjDescEvent();

            newObj.object_id  = binaryReader.ReadUInt32();
            newObj.desc       = ObjDesc.read(binaryReader);
            newObj.timestamps = PhysicsTimestampPack.read(binaryReader);
            return(newObj);
        }
Ejemplo n.º 4
0
        public static VectorUpdate read(BinaryReader binaryReader)
        {
            VectorUpdate newObj = new VectorUpdate();

            newObj.object_id  = binaryReader.ReadUInt32();
            newObj.velocity   = Vector3.read(binaryReader);
            newObj.omega      = Vector3.read(binaryReader);
            newObj.timestamps = PhysicsTimestampPack.read(binaryReader);
            return(newObj);
        }
Ejemplo n.º 5
0
        public static ParentEvent read(BinaryReader binaryReader)
        {
            ParentEvent newObj = new ParentEvent();

            newObj.object_id      = binaryReader.ReadUInt32();
            newObj.child_id       = binaryReader.ReadUInt32();
            newObj.child_location = binaryReader.ReadUInt32();
            newObj.placement_id   = binaryReader.ReadUInt32();
            newObj.timestamps     = PhysicsTimestampPack.read(binaryReader);
            return(newObj);
        }