public virtual void Serialize(IDataWriter writer) { writer.WriteInt(this.collectorId); writer.WriteShort((short)((int)this.allyCharactersInformations.Length)); CharacterMinimalPlusLookInformations[] characterMinimalPlusLookInformationsArray = this.allyCharactersInformations; for (int i = 0; i < (int)characterMinimalPlusLookInformationsArray.Length; i++) { CharacterMinimalPlusLookInformations characterMinimalPlusLookInformation = characterMinimalPlusLookInformationsArray[i]; writer.WriteShort(characterMinimalPlusLookInformation.TypeId); characterMinimalPlusLookInformation.Serialize(writer); } writer.WriteShort((short)((int)this.enemyCharactersInformations.Length)); CharacterMinimalPlusLookInformations[] characterMinimalPlusLookInformationsArray1 = this.enemyCharactersInformations; for (int j = 0; j < (int)characterMinimalPlusLookInformationsArray1.Length; j++) { CharacterMinimalPlusLookInformations characterMinimalPlusLookInformation1 = characterMinimalPlusLookInformationsArray1[j]; writer.WriteShort(characterMinimalPlusLookInformation1.TypeId); characterMinimalPlusLookInformation1.Serialize(writer); } }