Esempio 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();
     }
 }
Esempio n. 2
0
 internal static BitArray8 Read(RailBitBuffer buffer)
 {
   return new BitArray8(buffer.ReadByte());
 }
Esempio n. 3
0
 public static BitArray8 Read(RailBitBuffer buffer)
 {
     return(new BitArray8(buffer.ReadByte()));
 }
 public static CampaignTimeControlMode DecodeTimeControlMode(this RailBitBuffer buffer)
 {
     return((CampaignTimeControlMode)buffer.ReadByte());
 }