Jumpvalley 0.7.0
An app and library that can be used to test and run 3D platformer levels! Made with Godot.
Loading...
Searching...
No Matches
UTheCat.Jumpvalley.Core.Levels.DirectoryLevelRunner Class Reference

Subclass of LevelRunner that handles running levels located within a directory. More...

Inheritance diagram for UTheCat.Jumpvalley.Core.Levels.DirectoryLevelRunner:
UTheCat.Jumpvalley.Core.Levels.LevelRunner

Public Member Functions

 DirectoryLevelRunner (Player player, string directoryPath)
 Creates a new DirectoryLevelRunner
LevelPackage FindLevelById (string levelId)
 Finds a level package in the directory by it's user-defined ID.
Public Member Functions inherited from UTheCat.Jumpvalley.Core.Levels.LevelRunner
 LevelRunner (Player player)
 Creates a new instance of the app's level runner.

Properties

string DirectoryPath [get]
 File path to the directory containing the levels.

Additional Inherited Members

Public Attributes inherited from UTheCat.Jumpvalley.Core.Levels.LevelRunner
Player CurrentPlayer
 The Player instance that this LevelRunner is running under.
LevelPackage CurrentLevelPackage
 The level package containing the level that the player is currently playing.
LevelPackage Lobby
 The level package containing the level that's acting as the app's lobby.

This is separate from CurrentLevel so both the lobby and the level that the player is currently playing can run at the same time.

Detailed Description

Subclass of LevelRunner that handles running levels located within a directory.

Constructor & Destructor Documentation

◆ DirectoryLevelRunner()

UTheCat.Jumpvalley.Core.Levels.DirectoryLevelRunner.DirectoryLevelRunner ( Player player,
string directoryPath )
inline

Creates a new DirectoryLevelRunner

Parameters
playerThe player instance to run this level runner under
directoryPathPath to the directory containing the levels

Member Function Documentation

◆ FindLevelById()

LevelPackage UTheCat.Jumpvalley.Core.Levels.DirectoryLevelRunner.FindLevelById ( string levelId)
inline

Finds a level package in the directory by it's user-defined ID.

Returns

The documentation for this class was generated from the following file: