Ejemplo n.º 1
0
 protected override void DecodeMutableData(RailBitBuffer buffer, uint flags)
 {
     if (this.GetFlag(flags, FLAG_X))
     {
         this.X = buffer.ReadFloat(GameCompressors.Coordinate);
     }
     if (this.GetFlag(flags, FLAG_Y))
     {
         this.Y = buffer.ReadFloat(GameCompressors.Coordinate);
     }
     if (this.GetFlag(flags, FLAG_ANGLE))
     {
         this.Angle = buffer.ReadFloat(GameCompressors.Angle);
     }
     if (this.GetFlag(flags, FLAG_STATUS))
     {
         this.Status = buffer.ReadByte();
     }
 }
Ejemplo n.º 2
0
 public float Read(RailBitBuffer buffer)
 {
     return(buffer.ReadFloat(this));
 }
Ejemplo n.º 3
0
 public Vec2 Read(RailBitBuffer buffer)
 {
     return(new Vec2(buffer.ReadFloat(m_Compressor), buffer.ReadFloat(m_Compressor)));
 }