Beispiel #1
0
 public override void Serialize(IDataWriter writer)
 {
     writer.WriteVarInt(this.rideId);
     writer.WriteShort((short)((int)this.boostToUpdateList.Length));
     UpdateMountBoost[] updateMountBoostArray = this.boostToUpdateList;
     for (int i = 0; i < (int)updateMountBoostArray.Length; i++)
     {
         UpdateMountBoost updateMountBoost = updateMountBoostArray[i];
         writer.WriteShort(updateMountBoost.TypeId);
         updateMountBoost.Serialize(writer);
     }
 }
Beispiel #2
0
        public override void Serialize(IDataWriter writer)
        {
            writer.WriteShort(((short)(m_boostToUpdateList.Count)));
            int boostToUpdateListIndex;

            for (boostToUpdateListIndex = 0; (boostToUpdateListIndex < m_boostToUpdateList.Count); boostToUpdateListIndex = (boostToUpdateListIndex + 1))
            {
                UpdateMountBoost objectToSend = m_boostToUpdateList[boostToUpdateListIndex];
                writer.WriteUShort(((ushort)(objectToSend.TypeID)));
                objectToSend.Serialize(writer);
            }
            writer.WriteVarInt(m_rideId);
        }