public void SetActiveWorld(World world) { if (Worlds.Contains(world)) { ActiveWorld = world; } else { throw new Exception("Cannot set active world to unregistered world"); } }
public static StageErrorStruct Validate(string category, int id, string name, string description, string scene, bool local = true) { return(new StageErrorStruct( category.Length == 0, ContainsNumber(category, id, true), name.Length == 0 || ContainsKey(name, true) || ContainsKey(name, false), false, !Worlds.Contains(scene), local == false, false )); }