/// <summary> /// Create the state machine in the StoppedState and begin processing commands on intervals (every time a frame is rendered). /// </summary> public Machine(CoreManager core, string path) { Core = core; Utility = new Utility(this, path); Interpreter = new Interpreter(this); ChatManager = new ChatManager(this); ComponentChecker = new ComponentChecker(Core); Inventory = new Inventory(this); RandomNumber = new Random(); SpellTable = Core.Filter <FileService>().SpellTable; }
private SpellSchool SpellSchool(int spellId) { return(Core.Filter <FileService>().SpellTable.GetById(spellId).School); }