EntityFramework

Manager class for registering script classes.

Summary
EntityFrameworkManager class for registering script classes.
Functions
RegisterGameObjectRegister the a new game object type, using the provided lua table as a template.
RegisterGameStateRegister the a new game state type, using the provided lua table as a template.
NKRegisterGeneratorClassRegister the new generator class, using the provided lua table as a template.
RegisterModScriptRegister the a mod script type, using the provided lua table as a template.
GetModdedPathReturns modded path to the file based on the virtual file system (mods.txt)
NKGetModInstancesReturns a complete list of all <ModScriptClass> instances
NKGetRawModsReturns a complete list of all GameMod native objects.

Functions

RegisterGameObject

Register the a new game object type, using the provided lua table as a template.

Parameters

TTable containing the template data for this class type.

RegisterGameState

Register the a new game state type, using the provided lua table as a template.

Parameters

TTable containing the template data for this class type.

NKRegisterGeneratorClass

Register the new generator class, using the provided lua table as a template.

Parameters

TTable containing the template data for this class type.

RegisterModScript

Register the a mod script type, using the provided lua table as a template.

Parameters

TTable containing the template data for this class type.

GetModdedPath

Returns modded path to the file based on the virtual file system (mods.txt)

Parameters

Stringrelative path

Returns

Stringabsolute path (modded)

NKGetModInstances

Returns a complete list of all <ModScriptClass> instances

Returns

TableA lua table of <ModScriptClass> instances

NKGetRawMods

Returns a complete list of all GameMod native objects.  Advanced use only!  Use NKGetModInstances instead!

Returns

TableA lua table of GameMod native objects
Mod class
Close