Ejemplo n.º 1
0
 /// <summary>
 ///     Encodes this instance.
 /// </summary>
 public override void Encode(ChecksumEncoder encoder)
 {
     encoder.WriteInt(this._x);
     encoder.WriteInt(this._y);
     encoder.WriteDataReference(this._buildingData);
     base.Encode(encoder);
 }
        /// <summary>
        ///     Encodes this instance.
        /// </summary>
        public override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteInt(this._gameObjectId);
            encoder.WriteInt(this._unitType);
            encoder.WriteDataReference(this._unitData);
            encoder.WriteInt(this._unitCount);
            encoder.WriteInt(this._slotId);

            base.Encode(encoder);
        }
Ejemplo n.º 3
0
        /// <summary>
        ///     Encodes this instance.
        /// </summary>
        public override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteInt(this._x);
            encoder.WriteInt(this._y);
            encoder.WriteDataReference(this._data);
            encoder.WriteBoolean(this._allianceSpell);
            encoder.WriteInt(this._upgLevel);

            base.Encode(encoder);
        }
Ejemplo n.º 4
0
        /// <summary>
        ///     Encodes this instance.
        /// </summary>
        public override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteInt(this._resourceCount);
            encoder.WriteDataReference(this._resourceData);
            encoder.WriteInt(this._resource2Count);

            if (this._resource2Count > 0)
            {
                encoder.WriteDataReference(this._resource2Data);
            }

            if (this._command != null)
            {
                encoder.WriteBoolean(true);
                LogicCommandManager.EncodeCommand(encoder, this._command);
            }
            else
            {
                encoder.WriteBoolean(false);
            }

            base.Encode(encoder);
        }
 /// <summary>
 ///     Encodes this instance.
 /// </summary>
 public override void Encode(ChecksumEncoder encoder)
 {
     encoder.WriteDataReference(this._missionData);
     base.Encode(encoder);
 }
Ejemplo n.º 6
0
 /// <summary>
 ///     Encodes this instance.
 /// </summary>
 public override void Encode(ChecksumEncoder encoder)
 {
     encoder.WriteDataReference(this._achievementData);
     base.Encode(encoder);
 }
Ejemplo n.º 7
0
 /// <summary>
 ///     Encodes this instance.
 /// </summary>
 public void Encode(ChecksumEncoder encoder)
 {
     encoder.WriteDataReference(this._data);
     encoder.WriteInt(this._count);
 }
Ejemplo n.º 8
0
 /// <summary>
 ///     Encodes this instance.
 /// </summary>
 public void Encode(ChecksumEncoder encoder)
 {
     encoder.WriteDataReference(this._npcData);
 }