Click or drag to resize

Mod Class

Base class for mods loaded by a IModLoader.
Inheritance Hierarchy

Namespace:  Kit.Modding
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public abstract class Mod
Request Example View Source

The Mod type exposes the following members.

Properties
  NameDescription
Public propertyGroup
The ModGroup this mod belong to.
Public propertyMetadata
The mod's metadata.
Public propertyName
Public propertyScriptDispatcher
The ScriptDispatcher associated with this mod.
Public propertyScriptEnv
The scripting environment associated with this mod.
Top
Methods
  NameDescription
Public methodExecuteScripts
Execute the scripts in the mod.
Public methodExecuteScriptsAsync
Execute the scripts in the mod asynchronously.
Public methodExists
Returns whether a file exists.
Public methodFindFiles
Find files based on a path.
Public methodLoad(String)
Load a resource.
Public methodLoad(Type, String)
Load a resource.
Public methodLoad(ResourceFolder, String)
Load a resource.
Public methodLoad(Type, ResourceFolder, String)
Load a resource.
Public methodLoadT(String)
Load a resource.
Public methodLoadT(ResourceFolder, String)
Load a resource.
Public methodLoadAsync(String)
Load a resource asynchronously.
Public methodLoadAsync(Type, String)
Load a resource asynchronously.
Public methodLoadAsync(ResourceFolder, String)
Load a resource asynchronously.
Public methodLoadAsync(Type, ResourceFolder, String)
Load a resource asynchronously.
Public methodLoadAsyncT(String)
Load a resource asynchronously.
Public methodLoadAsyncT(ResourceFolder, String)
Load a resource asynchronously.
Public methodLoadEx
Load a resource.
Public methodLoadExAsync
Load a resource asynchronously.
Public methodReadBytes
Read the contents of a file in binary-mode.
Public methodReadBytesAsync
Read the contents of a file asynchronously in binary-mode.
Public methodReadText
Read the contents of a file in text-mode.
Public methodReadTextAsync
Read the contents of a file asynchronously in text-mode.
Public methodUnload
Unload the mod.
Top
Fields
  NameDescription
Public fieldStatic memberGCInterval
Garbage collector interval for the Lua environment of the mod.
Top
See Also