Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
 private SpellSchool SpellSchool(int spellId)
 {
     return(Core.Filter <FileService>().SpellTable.GetById(spellId).School);
 }