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