Exemplo n.º 1
0
    //----------------//
    // 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);
        }
    }
Exemplo n.º 2
0
 /// <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);
     }
 }