예제 #1
0
    public void Read(BitStream stream)
    {
        GameType    = stream.Read <E_MPGameType>();
        Team        = stream.Read <E_Team>();
        Winner      = stream.ReadBoolean();
        Place       = stream.ReadChar();
        Experience  = stream.ReadInt16();
        Money       = stream.ReadInt16();
        Gold        = stream.ReadInt16();
        NewRank     = stream.ReadBoolean();
        MissionExp  = stream.ReadInt16();
        MissioMoney = stream.ReadInt16();
        FirstRound  = stream.ReadBoolean();

        PlayersScore.Clear();
        PlayersScore.InsertRange(0, stream.Read <PlayerResult[]>());
    }
예제 #2
0
    public void Read(BitStream stream)
    {
        int count = (int)stream.ReadInt16();

        for (int i = 0; i < count; i++)
        {
            T id = stream.Read <T>();
            Items.Add(id);
        }
    }
예제 #3
0
 public void Read(BitStream stream)
 {
     Team       = stream.Read <E_Team>();
     PrimaryKey = stream.ReadString();
     NickName   = stream.ReadString();
     Score      = stream.ReadInt16();
     Deaths     = stream.ReadByte();
     Kills      = stream.ReadByte();
     Platform   = stream.Read <RuntimePlatform>();
 }
예제 #4
0
    public void Read(BitStream stream)
    {
        Player     = stream.Read <NetworkPlayer>();
        Team       = stream.Read <E_Team>();
        ZoneIndex  = stream.ReadByte();
        Platform   = (RuntimePlatform)stream.ReadInt16();
        Name       = stream.ReadString();
        PrimaryKey = stream.ReadString();         //TODO: PRIMARY KEY - pridat username?

        PlayerData.Read(stream);
    }
예제 #5
0
    public void Read(BitStream stream)
    {
        int count = (int)stream.ReadInt16();

        for (int i = 0; i < count; i++)
        {
            UpgradeData data;

            data.ID = stream.Read <E_UpgradeID>();

            Upgrades.Add(data);
        }
    }
예제 #6
0
 public void Read(BitStream stream)
 {
     Score      = stream.ReadInt16();
     Kills      = stream.ReadInt16();
     Deaths     = stream.ReadInt16();
     Experience = stream.ReadInt16();
     Money      = stream.ReadInt16();
     Gold       = stream.ReadInt16();
 }
예제 #7
0
 internal static object _ReadInt16(BitStream stream, object[] codecOptions)
 {
     return(stream.ReadInt16());
 }
예제 #8
0
 public void Read(BitStream stream)
 {
     ID           = stream.Read <E_ItemID>();
     EquipSlotIdx = stream.ReadByte();
     Count        = stream.ReadInt16();
 }