//----------------// // Updating Paths // //----------------// /// <summary> /// Adds a new path to this world's list of paths. /// </summary> /// <param name="path">The path to add to the list.</param> public void AddPath(LevelPath path) { if (!ChildPaths.Contains(path)) { ChildPaths.Add(path); } }
/// <summary> /// Removes the given path from this world's list of paths. /// </summary> /// <param name="path">The path to remove from the list.</param> public void RemovePath(LevelPath path) { if (ChildPaths.Contains(path)) { ChildPaths.Remove(path); } }