Naev

Module diff

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:

 diff.apply( "collective_dead" )
 

Functions

apply (name) Applies a diff by name.
remove (name) Removes a diff by name.
isApplied (name) Checks to see if a diff is currently applied.


Functions

apply (name)
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.

Parameters:

  • name string Name of the diff to apply.
remove (name)
Removes a diff by name.

Parameters:

  • name string Name of the diff to remove.
isApplied (name)
Checks to see if a diff is currently applied.

Parameters:

  • name string Name of the diff to check.

Returns:

    boolean true if diff is applied, false if it isn't.
generated by LDoc 1.5.0 Last updated 2024-11-21 07:14:26