Beispiel #1
0
        /// <summary>
        /// Resume total Player Power.
        /// </summary>
        public void ResumePlayerPower()
        {
            Unit thePower = Unit.GetBasicUnit();

            thePower   += PlayerHeroes.GetTotalHeroesPower();
            thePower   += PlayerTroops.GetTotalTroopsPower();
            PlayerPower = thePower;
        }
	//player data load success callback
	private void OnLoadSuccess() {
		EventsAggregator.Network.RemoveListener(ENetworkEvent.PlayerDataLoadSuccess, OnLoadSuccess);

		//TODO: assign correct values
		Resources = new PlayerResources(10, 2500, 100);
		Inventory = new PlayerInventory();
		Heroes = new PlayerHeroes(new BaseHero[] { new BaseHero(UnitsConfig.Instance.GetHeroData(EUnitKey.Hero_Sniper), 0) }, 0);
		HeroSkills = new PlayerHeroSkills();
		City = new PlayerCity();
		StoryProgress = new PlayerStoryProgress();
		Statistics = new PlayerStatistics();
		VIPStatus = EPlayerVIP.None;
	}
Beispiel #3
0
    //player data load success callback
    private void OnLoadSuccess()
    {
        EventsAggregator.Network.RemoveListener(ENetworkEvent.PlayerDataLoadSuccess, OnLoadSuccess);

        //TODO: assign correct values
        Resources     = new PlayerResources(10, 2500, 100);
        Inventory     = new PlayerInventory();
        Heroes        = new PlayerHeroes(new BaseHero[] { new BaseHero(UnitsConfig.Instance.GetHeroData(EUnitKey.Hero_Sniper), 0) }, 0);
        HeroSkills    = new PlayerHeroSkills();
        City          = new PlayerCity();
        StoryProgress = new PlayerStoryProgress();
        Statistics    = new PlayerStatistics();
        VIPStatus     = EPlayerVIP.None;
    }