Game (functions)/Misc
From PMDOWiki
More functions: Script Reference
This page documents the ScriptGame class for Lua scripting.
As a singleton class, it can be accessed from Lua with GAME.
GroundSave
GAME:GroundSave()
Saves the game while in ground mode.
Returns
| Type | Description |
|---|---|
| NLua.LuaFunction |
GetModDiff
GAME:GetModDiff(uuidStr)
Checks to see if the specified mod has differences from the current save file.
Parameters
| Name | Type | Description |
|---|---|---|
| System.String | System.String | The UUID of the mod to check for differences. |
Returns
| Type | Description |
|---|---|
| RogueEssence.ModDiff |
SetupLuaFunctions
GAME:SetupLuaFunctions(state)
Initializes any LuaFunctions found in the class.
Automatically on lua initialization.
Parameters
| Name | Type | Description |
|---|---|---|
| RogueEssence.Script.LuaEngine | RogueEssence.Script.LuaEngine | The lua engine to initialize with. |
References
https://github.com/RogueCollab/RogueEssence/blob/master/RogueEssence/Lua/ScriptGameMisc.cs
