Class CustomMapperTypes
Mapper types are the elements available in the block mapper.
It is possible to define custom mapper types, these must be registered in this class.
See the documentation about custom mapper types for detailed usage information.
Namespace: Modding.Mapper
Assembly: Assembly-CSharp.dll
Syntax
public static class CustomMapperTypes
Methods
AddMapperType<T, TMapper, TSelector>()
Registers a new custom mapper type.
Declaration
public static void AddMapperType<T, TMapper, TSelector>()
where TMapper : MCustom<T> where TSelector : CustomSelector<T, TMapper>
Type Parameters
Name | Description |
---|---|
T | Type of base value being edited. |
TMapper | MCustom wrapper type around T. |
TSelector | CustomSelector type. |