Show / Hide Table of Contents

Class LuaValueMapper

Maps arbitrary C# types to Lua values Supports registring additional mappings for specified types

Inheritance
object
LuaValueMapper
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 LuaValueMapper

Constructors

| Edit this page View Source

LuaValueMapper()

Declaration
public LuaValueMapper()

Methods

| Edit this page View Source

DefineMapper(Type, Func<object, LuaValue>)

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

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

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

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

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

Map(Element)

Declaration
public LuaValue Map(Element element)
Parameters
Type Name Description
Element element
Returns
Type Description
LuaValue
| Edit this page View Source

Map(ILuaMappable)

Declaration
public LuaValue Map(ILuaMappable value)
Parameters
Type Name Description
ILuaMappable value
Returns
Type Description
LuaValue
| Edit this page View Source

Map(IEnumerable<object>)

Declaration
public LuaValue Map(IEnumerable<object> values)
Parameters
Type Name Description
IEnumerable<object> values
Returns
Type Description
LuaValue
| Edit this page View Source

Map(IDictionary)

Declaration
public LuaValue Map(IDictionary source)
Parameters
Type Name Description
IDictionary source
Returns
Type Description
LuaValue
| Edit this page View Source

Map(IEnumerable?)

Declaration
public LuaValue Map(IEnumerable? values)
Parameters
Type Name Description
IEnumerable values
Returns
Type Description
LuaValue
| Edit this page View Source

Map(object?)

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