/// <summary> /// Initializes a new instance of the <see cref="BattleLog"/> class. /// </summary> public BattleLog() { this.Loot = new ResourceSlots(); this.Units = new DataSlots(); this.Spells = new DataSlots(); this.CastleUnits = new DataSlots(); this.Levels = new DataSlots(); }
/// <summary> /// Initializes a new instance of the <see cref="Player"/> class. /// </summary> internal Player() { this.AchievementsClaimed = new List <Data>(50); this.Resources = new ResourceSlots(); this.AchievementProgresses = new DataSlots(); this.Facebook = new Facebook(this); this.Google = new Google(this); this.Gamecenter = new Gamecenter(this); this.Home = new Home(this); this.Initialize(); }
/// <summary> /// Initializes a new instance of the <see cref="Player"/> class. /// </summary> internal Player() { this.Time = new Time(); this.EnergyTimer = new Timer(this.Time); this.Achievements = new List <int>(50); this.AchievementProgress = new DataSlots(this); this.ItemInventories = new DataSlots(this); this.Resources = new ResourceSlots(this); this.Spells = new DataSlots(this); this.HeroLevels = new HeroLevelSlots(this); this.NpcProgress = new DataSlots(this); this.Variables = new DataSlots(this); this.EnergyPackages = new DataSlots(this, 2); this.HeroUnlockSeens = new DataSlots(this); this.QuestUnlockSeens = new DataSlots(this); this.Extras = new DataSlots(this); this.Facebook = new Facebook(this); this.Google = new Google(this); this.Gamecenter = new Gamecenter(this); this.HeroUpgrade = new HeroUpgrade(this); // Initialize. this.Diamonds = GameSettings.StartingDiamonds; this.OngoingQuestData = GameSettings.StartingQuest.GlobalID; this.HeroLevels.Initialize(); this.Resources.Initialize(); // DEBUG this.Resources.Set(2000003, 1000); this.Resources.Set(2000004, 1000); this.Resources.Set(2000005, 1000); foreach (QuestData Data in CSV.Tables.Get(Gamefile.Quests).Datas) { if (Data.QuestType == "Unlock") { this.NpcProgress.AddItem(Data.GlobalID, 1); } } }
/// <summary> /// Initializes a new instance of the <see cref="PlayerBase"/> class. /// </summary> public PlayerBase() { this.AchievementProgress = new DataSlots(); this.ResourceCaps = new DataSlots(); this.Resources = new ResourceSlots(); this.Units = new UnitSlots(); this.Units2 = new UnitSlots(); this.Spells = new DataSlots(); this.UnitUpgrades = new DataSlots(); this.SpellUpgrades = new DataSlots(); this.HeroUpgrades = new DataSlots(); this.AllianceUnits = new AllianceUnitSlots(); this.NpcMapProgress = new NpcMapSlots(); this.NpcLootedGold = new DataSlots(); this.NpcLootedElixir = new DataSlots(); this.Variables = new DataSlots(); }
public MediatorBarrels(IContext context) { _context = context; _slotSprites = ResourceSlots.Load().ToArray(); }