![]() |
naev 0.12.5
|
Unidiff Lua module. More...
#include "nlua_diff.h"#include "unidiff.h"
Go to the source code of this file.
Functions | |
| static int | diffL_apply (lua_State *L) |
| Lua bindings to apply/remove Universe Diffs. | |
| static int | diffL_remove (lua_State *L) |
| Removes a diff by name. | |
| static int | diffL_isapplied (lua_State *L) |
| Checks to see if a diff is currently applied. | |
| int | nlua_loadDiff (nlua_env env) |
| Loads the diff Lua library. | |
Variables | |
| static const luaL_Reg | diffL_methods [] |
Unidiff Lua module.
Definition in file nlua_diff.c.
|
static |
Lua bindings to apply/remove Universe Diffs.
Universe Diffs are patches you can apply to the universe to make permanent changes. They are defined in dat/unidiff.xml.
Typical usage would be:
Lua module: diff
Applies a diff by name.
If your diff modifies a Spob or a system, the safe lanes will be re-computed just after it is applied, causing the game to freeze for a short time. As a result, prefer not to apply a diff when the player is in space.
Lua function parameter: string name Name of the diff to apply.
| L | Lua State |
Lua function: apply
Definition at line 63 of file nlua_diff.c.
|
static |
Checks to see if a diff is currently applied.
Lua function parameter: string name Name of the diff to check. Lua return parameter: boolean true if diff is applied, false if it isn't.
| L | Lua State |
Lua function: isApplied
Definition at line 90 of file nlua_diff.c.
|
static |
Removes a diff by name.
Lua function parameter: string name Name of the diff to remove.
| L | Lua State |
Lua function: remove
Definition at line 76 of file nlua_diff.c.
| int nlua_loadDiff | ( | nlua_env | env | ) |
Loads the diff Lua library.
| env | Lua enviornment. |
Definition at line 34 of file nlua_diff.c.
|
static |
Unidiff Lua methods.
Definition at line 23 of file nlua_diff.c.