Esempio n. 1
0
        public Player(GameSession session, Account account, PlayerDto dto)
        {
            Session          = session;
            Account          = account;
            _tutorialState   = dto.TutorialState;
            _level           = dto.Level;
            _totalExperience = (uint)dto.TotalExperience;
            _pen             = (uint)dto.PEN;
            _ap     = (uint)dto.AP;
            _coins1 = (uint)dto.Coins1;
            _coins2 = (uint)dto.Coins2;

            Settings    = new PlayerSettingManager(this, dto);
            DenyManager = new DenyManager(this, dto);
            Mailbox     = new Mailbox(this, dto);

            LicenseManager   = new LicenseManager(this, dto);
            Inventory        = new Inventory(this, dto);
            CharacterManager = new CharacterManager(this, dto);

            RoomInfo = new PlayerRoomInfo();

            DeathMatch  = new DMStats(this, dto);
            TouchDown   = new TDStats(this, dto);
            Chasser     = new ChaserStats(this, dto);
            BattleRoyal = new BRStats(this, dto);
            CaptainMode = new CPTStats(this, dto);

            Mission = new WeeklyMission(this, dto);

            RandomShop = new RandomShopInfo[2];
        }
Esempio n. 2
0
 public StatsManager(Player player, PlayerDto playerDto)
 {
     Player      = player;
     DeathMatch  = new DMStats(Player, playerDto);
     TouchDown   = new TDStats(Player, playerDto);
     Chaser      = new ChaserStats(Player, playerDto);
     BattleRoyal = new BRStats(Player, playerDto);
     Captain     = new CPTStats(Player, playerDto);
     Siege       = new SiegeStats(Player, playerDto);
 }