Show / Hide Table of Contents

Class CustomModules

Block Modules can be used as plug-and-play behaviour for custom blocks without writing any code.

This class can be used to add new modules to use for other mods (or in the same mod of course).

See the documentation about Modules for detailed usage information.

Inheritance
Object
CustomModules
Namespace: Modding.Modules
Assembly: Assembly-CSharp.dll
Syntax
public static class CustomModules

Methods

AddBlockModule<TModule, TBehaviour>(String, Boolean)

Registers a new block modules.

Declaration
public static void AddBlockModule<TModule, TBehaviour>(string name, bool canReload)
    where TModule : BlockModule where TBehaviour : BlockModuleBehaviour<TModule>
Parameters
Type Name Description
String name

Name of the module.

Boolean canReload
Type Parameters
Name Description
TModule

BlockModule class.

TBehaviour

BlockModuleBehaviour class.

Back to top Generated by DocFX