Trigger API Reference DCEI Functions Map0 - funovus/editor-wiki GitHub Wiki
Table of Contents
- [Trigger API Reference\DCEI Functions\Map](#trigger-api-referencedcei-functionsmap)
* [string GetLevelName()](#string-getlevelname)
* [void PlayLevel(string path, string displayName, string data, object usedUnits)](#void-playlevelstring-path-string-displayname-string-data-object-usedunits)
* [string GetPlayLevelData()](#string-getplayleveldata)
|
Trigger API Reference\DCEI Functions\Map {Trigger-API-ReferenceDCEI-FunctionsMap}
string GetLevelName()
Returns the published name of the map.
local level_name = DCEI.GetLevelName()
DCEI.LogMessage(level_name)
void PlayLevel(string path, string displayName, string data, object usedUnits) {void-PlayLevelstring-path-string-displayName-string-data-object-usedUnits}
void PlayLevel(string path, string displayName, string data, object usedUnits)
Loads and plays the given map. The map to load must be within the same project.
-
string
path
the path to the map, or just the map name if both maps are in the same folder. -
string
displayName
the display name of the map. -
string
data
any data that is passed to the new level. -
object
usedUnits
a table declaring any units used by the new level, if not declared locally already.
DCEI.PlayLevel("Workshop 02 - Debugging & Foundations", nil, nil, nil)
string GetPlayLevelData()
local level_data = DCEI.GetPlayLevelData()
DCEI.LogMessage(level_data)