Show / Hide Table of Contents

Class FromLuaValueMapper

Maps Lua values to any arbitrary C# class. Support registring additional mappings for any specified type.

Inheritance
object
FromLuaValueMapper
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SlipeServer.Server.Mappers
Assembly: SlipeServer.Server.dll
Syntax
public class FromLuaValueMapper

Constructors

| Edit this page View Source

FromLuaValueMapper(IElementCollection)

Declaration
public FromLuaValueMapper(IElementCollection elementCollection)
Parameters
Type Name Description
IElementCollection elementCollection

Methods

| Edit this page View Source

DefineMapper(Func<LuaValue, object>, Type)

Declaration
public void DefineMapper(Func<LuaValue, object> mapper, Type type)
Parameters
Type Name Description
Func<LuaValue, object> mapper
Type type
| Edit this page View Source

DefineMapper(Type, Func<LuaValue, object>)

Declaration
public void DefineMapper(Type type, Func<LuaValue, object> mapper)
Parameters
Type Name Description
Type type
Func<LuaValue, object> mapper
| Edit this page View Source

DefineMapper<T>(Func<LuaValue, T>)

Declaration
public void DefineMapper<T>(Func<LuaValue, T> mapper) where T : class
Parameters
Type Name Description
Func<LuaValue, T> mapper
Type Parameters
Name Description
T
| Edit this page View Source

Map(Type, LuaValue)

Declaration
public object? Map(Type type, LuaValue value)
Parameters
Type Name Description
Type type
LuaValue value
Returns
Type Description
object
| Edit this page View Source

Map<T>(LuaValue)

Declaration
public T? Map<T>(LuaValue luaValue)
Parameters
Type Name Description
LuaValue luaValue
Returns
Type Description
T
Type Parameters
Name Description
T
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX