Ejemplo n.º 1
0
        public static QAngles Read(BinaryReader br)
        {
            QAngles ang = new QAngles
            {
                X = br.ReadAngle(),
                Y = br.ReadAngle(),
                Z = br.ReadAngle(),
            };

            return(ang);
        }
Ejemplo n.º 2
0
        public QSpawnStaticMessage(BinaryReader br)
        {
            ID         = QMessageID.SpawnStatic;
            ModelIndex = br.ReadByte();
            Frame      = br.ReadByte();
            Colormap   = br.ReadByte();
            Skin       = br.ReadByte();
            Origin     = new QCoords();
            Angles     = new QAngles();

            Origin.X = br.ReadCoord();
            Angles.X = br.ReadAngle();
            Origin.Y = br.ReadCoord();
            Angles.Y = br.ReadAngle();
            Origin.Z = br.ReadCoord();
            Angles.Z = br.ReadAngle();
        }
Ejemplo n.º 3
0
        public QSpawnBaselineMessage(BinaryReader br)
        {
            ID         = QMessageID.SpawnBaseline;
            Entity     = br.ReadInt16();
            ModelIndex = br.ReadByte();
            Frame      = br.ReadByte();
            Colormap   = br.ReadByte();
            Skin       = br.ReadByte();
            Origin     = new QCoords();
            Angles     = new QAngles();

            Origin.X = br.ReadCoord();
            Angles.X = br.ReadAngle();
            Origin.Y = br.ReadCoord();
            Angles.Y = br.ReadAngle();
            Origin.Z = br.ReadCoord();
            Angles.Z = br.ReadAngle();
        }
Ejemplo n.º 4
0
 public QSetAngleMessage(BinaryReader br)
 {
     ID     = QMessageID.SetAngle;
     Angles = QAngles.Read(br);
 }