// Thread: Main public override void OnCreated(IMilestones milestones) { ChirpLog.Debug("IMilestones Created"); }
// Thread: Main public override void OnCreated(IMilestones milestones) { Instance = this; Managers = milestones.managers; }
// Thread: Main public void OnCreated(IMilestones milestones) { ChirpLog.Debug("IMilestones Created"); }
public override void OnCreated(IMilestones milestones) { base.OnCreated(milestones); #region 读取/创建Xml文件 CustomMilestoneModel customMilestone = XmlHelper.FromXmlFile <CustomMilestoneModel>(_xmlFilePath); if (customMilestone == null || customMilestone.Rebuild) { customMilestone = new CustomMilestoneModel() { Rebuild = true, Milestones = new MilestoneModel[] { new MilestoneModel() { Level = 0, PurchaseAreasCount = 1 }, new MilestoneModel() { Level = 1 }, new MilestoneModel() { Level = 2 }, new MilestoneModel() { Level = 3 }, new MilestoneModel() { Level = 4 }, new MilestoneModel() { Level = 5 }, new MilestoneModel() { Level = 6 }, new MilestoneModel() { Level = 7 }, new MilestoneModel() { Level = 8 }, new MilestoneModel() { Level = 9 }, new MilestoneModel() { Level = 10 }, new MilestoneModel() { Level = 11 }, new MilestoneModel() { Level = 12 }, new MilestoneModel() { Level = 13 } } }; if (Singleton <UnlockManager> .exists) { foreach (var milestone in Singleton <UnlockManager> .instance.m_properties.m_progressionMilestones) { int purchaseAreasCount = Singleton <UnlockManager> .instance.m_properties.m_AreaMilestones.Count(m => m.GetLevel() == milestone.GetLevel()); customMilestone.Milestones[milestone.GetLevel()].LocalizedName = milestone.GetLocalizedName(); customMilestone.Milestones[milestone.GetLevel()].RewardCash = milestone.m_rewardCash; customMilestone.Milestones[milestone.GetLevel()].PurchaseAreasCount = purchaseAreasCount; } } XmlHelper.ToXmlFile(customMilestone, _xmlFilePath); } #endregion }
public void OnCreated(IMilestones milestoneInterface) { }
public MilestonesManager(IMilestones milestonesInterface) { this.milestonesInterface = milestonesInterface; }