Exemple #1
0
        public void Encode(ChecksumEncoder encoder)
        {
            encoder.EnableCheckSum(false);
            encoder.WriteInt(this.m_commandList.Size());

            for (int i = 0; i < this.m_commandList.Size(); i++)
            {
                LogicCommand command = this.m_commandList[i];

                encoder.WriteInt((int)command.GetCommandType());
                command.Encode(encoder);
            }

            encoder.EnableCheckSum(true);
        }
Exemple #2
0
 public static void EncodeCommand(ChecksumEncoder encoder, LogicCommand command)
 {
     encoder.WriteInt((int)command.GetCommandType());
     command.Encode(encoder);
 }