Exemplo n.º 1
0
 public GameFightFighterInformations(GameFightMinimalStats stats, List <System.UInt16> previousPositions, byte teamId, byte wave, bool alive)
 {
     m_stats             = stats;
     m_previousPositions = previousPositions;
     m_teamId            = teamId;
     m_wave  = wave;
     m_alive = alive;
 }
 public GameFightFighterInformations(byte teamId, byte wave, bool alive, GameFightMinimalStats stats, List <ushort> previousPositions)
 {
     TeamId            = teamId;
     Wave              = wave;
     Alive             = alive;
     Stats             = stats;
     PreviousPositions = previousPositions;
 }
Exemplo n.º 3
0
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            m_teamId = reader.ReadByte();
            m_wave   = reader.ReadByte();
            m_alive  = reader.ReadBoolean();
            m_stats  = ProtocolTypeManager.GetInstance <GameFightMinimalStats>((short)reader.ReadUShort());
            m_stats.Deserialize(reader);
            int previousPositionsCount = reader.ReadUShort();
            int previousPositionsIndex;

            m_previousPositions = new System.Collections.Generic.List <ushort>();
            for (previousPositionsIndex = 0; (previousPositionsIndex < previousPositionsCount); previousPositionsIndex = (previousPositionsIndex + 1))
            {
                m_previousPositions.Add(reader.ReadVarUhShort());
            }
        }