public override void Serialize(IDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteSByte(teamId);
     writer.WriteBoolean(alive);
     writer.WriteShort(stats.TypeId);
     stats.Serialize(writer);
 }
 public override void Serialize(IDataWriter writer)
 {
     base.Serialize(writer);
     spawnInfo.Serialize(writer);
     writer.WriteSbyte(wave);
     writer.WriteShort(stats.TypeId);
     stats.Serialize(writer);
     writer.WriteShort((short)previousPositions.Length);
     foreach (var entry in previousPositions)
     {
         writer.WriteVarShort((int)entry);
     }
 }
Пример #3
0
 public override void Serialize(IWriter writer)
 {
     base.Serialize(writer);
     writer.WriteSByte(teamId);
     writer.WriteSByte(wave);
     writer.WriteBoolean(alive);
     writer.WriteShort(stats.TypeId);
     stats.Serialize(writer);
     writer.WriteShort((short)previousPositions.Count());
     foreach (var entry in previousPositions)
     {
         writer.WriteVarShort((int)entry);
     }
 }
Пример #4
0
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteSByte(teamId);
     writer.WriteSByte(wave);
     writer.WriteBoolean(alive);
     writer.WriteShort(stats.TypeId);
     stats.Serialize(writer);
     writer.WriteUShort((ushort)previousPositions.Length);
     foreach (var entry in previousPositions)
     {
         writer.WriteVarShort(entry);
     }
 }
 public override void Serialize(ICustomDataOutput writer)
 {
     base.Serialize(writer);
     writer.WriteSByte(teamId);
     writer.WriteSByte(wave);
     writer.WriteBoolean(alive);
     writer.WriteShort(stats.TypeId);
     stats.Serialize(writer);
     writer.WriteUShort((ushort)previousPositions.Count());
     foreach (var entry in previousPositions)
     {
         writer.WriteVarUhShort(entry);
     }
 }
 public virtual void Serialize(IDataWriter writer)
 {
     writer.WriteShort(spawnInformation.TypeId);
     spawnInformation.Serialize(writer);
     writer.WriteSbyte(wave);
     look.Serialize(writer);
     writer.WriteShort(stats.TypeId);
     stats.Serialize(writer);
     writer.WriteShort((short)summons.Length);
     foreach (var entry in summons)
     {
         writer.WriteShort(entry.TypeId);
         entry.Serialize(writer);
     }
 }
Пример #7
0
        public override void Serialize(IDataWriter writer)
        {
            base.Serialize(writer);
            writer.WriteSByte(teamId);
            writer.WriteSByte(wave);
            writer.WriteBoolean(alive);
            writer.WriteShort(stats.TypeId);
            stats.Serialize(writer);
            var previousPositions_before = writer.Position;
            var previousPositions_count  = 0;

            writer.WriteUShort(0);
            foreach (var entry in previousPositions)
            {
                writer.WriteVarShort(entry);
                previousPositions_count++;
            }
            var previousPositions_after = writer.Position;

            writer.Seek((int)previousPositions_before);
            writer.WriteUShort((ushort)previousPositions_count);
            writer.Seek((int)previousPositions_after);
        }
Пример #8
0
 public override void Serialize(IWriter writer)
 {
     writer.WriteDouble(fighterId);
     stats.Serialize(writer);
 }
 public override void Serialize(ICustomDataOutput writer)
 {
     writer.WriteDouble(fighterId);
     stats.Serialize(writer);
 }
 public void Serialize(IDataWriter writer)
 {
     writer.WriteDouble(fighterId);
     stats.Serialize(writer);
 }