Jumpvalley 0.5.0
An app and library that can be used to test and run 3D platformer levels. Currently being made with Godot.
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
Jumpvalley.Levels.DirectoryLevelRunner Class Reference

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

Inheritance diagram for Jumpvalley.Levels.DirectoryLevelRunner:
Jumpvalley.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 Jumpvalley.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 Jumpvalley.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()

Jumpvalley.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 Jumpvalley.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: