![]() |
Jumpvalley 0.5.0
An app and library that can be used to test and run 3D platformer levels. Currently being made with Godot.
|
Reads an info file for a Jumpvalley level. More...
Public Member Functions | |
LevelInfoFile (string text) | |
![]() | |
InfoFile (string text) | |
Reads an info file from its raw text and stores such data in the Data field. | |
Public Attributes | |
string | Id |
The level's internal identifier. For example, you can make the identifier a shortened version of the full name. In order for level loading to work properly, this ID must match the directory name of the level within the resource filesystem. This is due to the current limitations of resource pack loading in Godot. For instance, if the level's ID is "demo", the contents of the level within the levels folder in the resource filesystem must be located at res://levels/demo | |
string | FullName |
The full name of the level. This is the name of the level that will actually be displayed to the user, and it can be different from the name of the level's root node. | |
string | Creators |
The creators of the level. | |
Difficulty | LevelDifficulty |
How difficult the level is. | |
string | ScenePath |
The file path to the scene file that contains the level, including the file name and extension. This path should typically be relative to the level's root folder. | |
![]() | |
Dictionary< string, string > | Data = new Dictionary<string, string>() |
The content of the info file. The keys of this dictionary are property names, and each key's value is the corresponding property value. | |
Additional Inherited Members | |
![]() | |
static readonly string | FILE_NAME = "info.txt" |
The full file name of an info file stored somewhere on a filesystem, including the file extension. | |
static readonly string | PROPERTY_SEPARATOR = "\n" |
The string that separates two properties with the info file's text. | |
static readonly string | NAME_VALUE_SEPARATOR = ": " |
The string that separates a property's name from its value. | |
Reads an info file for a Jumpvalley level.