Example #1
0
        public override void Write(ChessStreamWriter chessWriter, BinaryWriter writer)
        {
            var type = this.Data.GetSensorType();
            int index = chessWriter.GetSensorIndex(type);

            writer.Write((byte)index);
            this.Data.Serialize(writer);
        }