Example #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];
        }
        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);

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

            RoomInfo = new PlayerRoomInfo();
        }