Exemplo n.º 1
0
        public override void OnEnterWorld(Terraria.Player player)
        {
            base.OnEnterWorld(player);
            var mod = ModContent.GetInstance <SkillTreeMod>();

            this.skillDefinitionLoader = mod.skillDefinitionLoader;
        }
Exemplo n.º 2
0
        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();
            }
        }
Exemplo n.º 3
0
 public PlayerGUI(SkillDefinitionLoader skillDefinitionLoader)
 {
     this.skillDefinitionLoader = skillDefinitionLoader;
 }