コード例 #1
0
 /// <summary>
 /// Encodes in the specified stream.
 /// </summary>
 /// <param name="Stream">The stream.</param>
 public virtual void Encode(ChecksumEncoder Stream)
 {
     Stream.EncodeLogicLong(this.EntryId);
     Stream.WriteString(this.Name);
     Stream.WriteVInt(this.Order);
     Stream.WriteVInt(this.Score);
     Stream.WriteVInt(this.PreviousOrder);
 }
コード例 #2
0
ファイル: Command.cs プロジェクト: princeoftulip/ClashRoyale
        /// <summary>
        /// Encodes the specified stream.
        /// </summary>
        /// <param name="Stream">The stream.</param>
        public virtual void Encode(ChecksumEncoder Stream)
        {
            Stream.EnableCheckSum(false);

            Stream.WriteVInt(this.TickWhenGiven);
            Stream.WriteVInt(this.ExecuteTick);

            Stream.EncodeLogicLong(this.ExecutorId);

            Stream.EnableCheckSum(true);
        }