public virtual void Serialize(IDataWriter writer)
 {
     writer.WriteVarShort((int)subAreaId);
     waitingForHelpInfo.Serialize(writer);
     writer.WriteShort((short)allyCharactersInformations.Length);
     foreach (var entry in allyCharactersInformations)
     {
         writer.WriteShort(entry.TypeId);
         entry.Serialize(writer);
     }
     writer.WriteShort((short)enemyCharactersInformations.Length);
     foreach (var entry in enemyCharactersInformations)
     {
         writer.WriteShort(entry.TypeId);
         entry.Serialize(writer);
     }
 }
 public virtual void Serialize(ICustomDataOutput writer)
 {
     writer.WriteVarUhShort(subAreaId);
     waitingForHelpInfo.Serialize(writer);
     writer.WriteUShort((ushort)allyCharactersInformations.Length);
     foreach (var entry in allyCharactersInformations)
     {
         writer.WriteShort(entry.TypeId);
         entry.Serialize(writer);
     }
     writer.WriteUShort((ushort)enemyCharactersInformations.Length);
     foreach (var entry in enemyCharactersInformations)
     {
         writer.WriteShort(entry.TypeId);
         entry.Serialize(writer);
     }
 }
Esempio n. 3
0
        public virtual void Serialize(IDataWriter writer)
        {
            writer.WriteVarShort(subAreaId);
            waitingForHelpInfo.Serialize(writer);
            var allyCharactersInformations_before = writer.Position;
            var allyCharactersInformations_count  = 0;

            writer.WriteShort(0);
            foreach (var entry in allyCharactersInformations)
            {
                writer.WriteShort(entry.TypeId);
                entry.Serialize(writer);
                allyCharactersInformations_count++;
            }
            var allyCharactersInformations_after = writer.Position;

            writer.Seek((int)allyCharactersInformations_before);
            writer.WriteShort((short)allyCharactersInformations_count);
            writer.Seek((int)allyCharactersInformations_after);

            var enemyCharactersInformations_before = writer.Position;
            var enemyCharactersInformations_count  = 0;

            writer.WriteShort(0);
            foreach (var entry in enemyCharactersInformations)
            {
                writer.WriteShort(entry.TypeId);
                entry.Serialize(writer);
                enemyCharactersInformations_count++;
            }
            var enemyCharactersInformations_after = writer.Position;

            writer.Seek((int)enemyCharactersInformations_before);
            writer.WriteShort((short)enemyCharactersInformations_count);
            writer.Seek((int)enemyCharactersInformations_after);
        }
 public override void Serialize(IDataWriter writer)
 {
     base.Serialize(writer);
     waitingForHelpInfo.Serialize(writer);
 }
Esempio n. 5
0
 public override void Serialize(ICustomDataOutput writer)
 {
     base.Serialize(writer);
     waitingForHelpInfo.Serialize(writer);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     waitingForHelpInfo.Serialize(writer);
 }