public override void Serialize(IDataWriter writer) { base.Serialize(writer); writer.WriteShort(((short)(m_effects.Count))); int effectsIndex; for (effectsIndex = 0; (effectsIndex < m_effects.Count); effectsIndex = (effectsIndex + 1)) { ObjectEffect objectToSend = m_effects[effectsIndex]; writer.WriteUShort(((ushort)(objectToSend.TypeID))); objectToSend.Serialize(writer); } writer.WriteVarUhShort(m_objectGID); }
public override void Serialize(ICustomDataOutput writer) { base.Serialize(writer); writer.WriteShort(((short)(m_effects.Count))); int effectsIndex; for (effectsIndex = 0; (effectsIndex < m_effects.Count); effectsIndex = (effectsIndex + 1)) { ObjectEffect objectToSend = m_effects[effectsIndex]; writer.WriteUShort(((ushort)(objectToSend.TypeID))); objectToSend.Serialize(writer); } writer.WriteVarUhShort(m_objectGID); writer.WriteVarUhInt(m_objectUID); writer.WriteVarUhInt(m_quantity); writer.WriteVarUhLong(m_objectPrice); }
public override void Serialize(IDataWriter writer) { writer.WriteVarShort((int)this.setId); writer.WriteShort((short)((int)this.setObjects.Length)); uint[] numArray = this.setObjects; for (int i = 0; i < (int)numArray.Length; i++) { writer.WriteVarShort((int)numArray[i]); } writer.WriteShort((short)((int)this.setEffects.Length)); ObjectEffect[] objectEffectArray = this.setEffects; for (int j = 0; j < (int)objectEffectArray.Length; j++) { ObjectEffect objectEffect = objectEffectArray[j]; writer.WriteShort(objectEffect.TypeId); objectEffect.Serialize(writer); } }
public override void Serialize(IDataWriter writer) { writer.WriteShort(((short)(m_effects.Count))); int effectsIndex; for (effectsIndex = 0; (effectsIndex < m_effects.Count); effectsIndex = (effectsIndex + 1)) { ObjectEffect objectToSend = m_effects[effectsIndex]; writer.WriteUShort(((ushort)(objectToSend.TypeID))); objectToSend.Serialize(writer); } writer.WriteShort(((short)(m_prices.Count))); int pricesIndex; for (pricesIndex = 0; (pricesIndex < m_prices.Count); pricesIndex = (pricesIndex + 1)) { writer.WriteVarUhLong(m_prices[pricesIndex]); } writer.WriteInt(m_itemUID); writer.WriteInt(m_objGenericId); }
public override void Serialize(IDataWriter writer) { writer.WriteInt(this.itemUID); writer.WriteInt(this.objGenericId); writer.WriteShort((short)((int)this.effects.Length)); ObjectEffect[] objectEffectArray = this.effects; for (int i = 0; i < (int)objectEffectArray.Length; i++) { ObjectEffect objectEffect = objectEffectArray[i]; writer.WriteShort(objectEffect.TypeId); objectEffect.Serialize(writer); } writer.WriteShort((short)((int)this.prices.Length)); uint[] numArray = this.prices; for (int j = 0; j < (int)numArray.Length; j++) { writer.WriteVarInt((int)numArray[j]); } }
public override void Serialize(ICustomDataOutput writer) { writer.WriteVarUhShort(m_setId); writer.WriteShort(((short)(m_setObjects.Count))); int setObjectsIndex; for (setObjectsIndex = 0; (setObjectsIndex < m_setObjects.Count); setObjectsIndex = (setObjectsIndex + 1)) { writer.WriteVarUhShort(m_setObjects[setObjectsIndex]); } writer.WriteShort(((short)(m_setEffects.Count))); int setEffectsIndex; for (setEffectsIndex = 0; (setEffectsIndex < m_setEffects.Count); setEffectsIndex = (setEffectsIndex + 1)) { ObjectEffect objectToSend = m_setEffects[setEffectsIndex]; writer.WriteUShort(((ushort)(objectToSend.TypeID))); objectToSend.Serialize(writer); } }