public override void OnEnterWorld(Terraria.Player player) { base.OnEnterWorld(player); var mod = ModContent.GetInstance <SkillTreeMod>(); this.skillDefinitionLoader = mod.skillDefinitionLoader; }
public override void Load() { base.Load(); this.hotkeyConfiguration = new HotkeyConfiguration(this); this.skillDefinitionLoader = new SkillDefinitionLoader(); this.gui = new PlayerGUI(this.skillDefinitionLoader); this.skillDefinitionLoader.loadSkills(); if (!Main.dedServ) { loadOnClient(); } }
public PlayerGUI(SkillDefinitionLoader skillDefinitionLoader) { this.skillDefinitionLoader = skillDefinitionLoader; }