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 | Public Attributes | List of all members
Jumpvalley.Levels.LevelInfo Class Reference

Class containing some info about a level. More...

Inheritance diagram for Jumpvalley.Levels.LevelInfo:
Jumpvalley.IO.JsonInfoFile

Public Member Functions

 LevelInfo (JsonNode data)
 
- Public Member Functions inherited from Jumpvalley.IO.JsonInfoFile
 JsonInfoFile ()
 Zero-parameter constructor for cases where extracting data from JSON text isn't needed.
 
 JsonInfoFile (JsonNode data)
 Reads a JSON info file from its raw text and stores such data in the RawData 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.
 
- Public Attributes inherited from Jumpvalley.IO.JsonInfoFile
JsonNode Data
 The JSON node containing the info file's data. This is the root node of the info file's JSON content.
 

Additional Inherited Members

- Static Public Attributes inherited from Jumpvalley.IO.JsonInfoFile
static readonly string FILE_NAME = "info.json"
 The full file name of a JSON info file stored somewhere on a filesystem, including the file extension.
 

Detailed Description

Class containing some info about a level.


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