예제 #1
0
        public Nation Convert(byte[] source)
        {
            var nation = new Nation();

            nation.Id       = ByteHandler.GetIntFromBytes(source, 0);
            nation.Name     = ByteHandler.GetStringFromBytes(source, 4, 50);
            nation.EUNation = EUNations.Contains(nation.Name, StringComparer.InvariantCultureIgnoreCase);

            return(nation);
        }
예제 #2
0
        public Club Convert(byte[] source)
        {
            var club = new Club();

            club.ClubId     = ByteHandler.GetIntFromBytes(source, 0);
            club.LongName   = ByteHandler.GetStringFromBytes(source, 4, 50);
            club.Name       = ByteHandler.GetStringFromBytes(source, 56, 25);
            club.NationId   = ByteHandler.GetIntFromBytes(source, 83);
            club.DivisionId = ByteHandler.GetIntFromBytes(source, 87);

            return(club);
        }
예제 #3
0
        public Club_Comp Convert(byte[] source)
        {
            var comp = new Club_Comp();

            comp.Id       = ByteHandler.GetIntFromBytes(source, 0);
            comp.LongName = ByteHandler.GetStringFromBytes(source, 4, 50);
            comp.Name     = ByteHandler.GetStringFromBytes(source, 56, 25);
            //comp.Reputation = ByteHandler.GetByteFromBytes(source, 82);
            comp.NationId     = ByteHandler.GetIntFromBytes(source, 92);
            comp.Abbreviation = ByteHandler.GetStringFromBytes(source, 83, 3);

            return(comp);
        }