public void Formatting() { foreach (var yaml in CategoryRegistry.LoadYaml()) { var children = yaml.Children; Assert.That(children, Contains.Key((YamlNode)"id")); Assert.That(children["id"].AsString().Length, Is.Positive); Assert.That(children, Contains.Key((YamlNode)"goal")); var goal = children["goal"].AsString(); Assert.That(goal.Length, Is.Positive); Assert.That(children, Contains.Key((YamlNode)"team")); var team = children["team"].AsString(); Assert.That(team.Length, Is.Positive); Assert.NotNull(TeamRegistry.Default[team]); } }
public void Register() { EntityRegistry = new EntityRegistry(); LevelRegistry = new LevelRegistry(); SkillRegistry = new SkillRegistry(); CategoryRegistry = new CategoryRegistry(); Anvil = new AnvilRegistry(); Anvil.GetMods(); Anvil.ModsPreInit(); Anvil.ModsLoad(); Anvil.ModsPostInit(); RegisterStatsAndCategories(); Entities.RegisterEntities(); Skills.RegisterSkills(); //Levels.RegisterLevels(); UIMain.GenerateFirstSkills(); new Character(new Rogue(), new Halfling()); }