Home

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

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


Functions

diff.apply (name)
Applies a diff by name.

Parameters

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

Parameters

  • name: Name of the diff to check.

Return value:

true if diff is applied, false if it isn't.
diff.remove (name)
Removes a diff by name.

Parameters

  • name: Name of the diff to remove.

Valid XHTML 1.0!