C# Class LuaInterface.ObjectTranslator

显示文件 Open project: unityluainterface/unityluainterface Class Usage Examples

Public Properties

Property Type Description
objects object>.Dictionary
objectsBackMap int>.Dictionary

Public Methods

Method Description
ObjectTranslator ( LuaInterface.Lua interpreter, IntPtr luaState ) : System
pushError ( IntPtr luaState, string msg ) : int

Private Methods

Method Description
FindType ( string className ) : Type
IsILua ( object o ) : bool
addObject ( object obj ) : int
collectObject ( int udata ) : void

Given the Lua int ID for an object remove it from our maps

collectObject ( object o, int udata ) : void

Given an object reference, remove it from our maps

createBaseClassMetatable ( IntPtr luaState ) : void
createClassMetatable ( IntPtr luaState ) : void
createFunctionMetatable ( IntPtr luaState ) : void
createIndexingMetaFunction ( IntPtr luaState ) : void
createLuaObjectList ( IntPtr luaState ) : void
ctype ( IntPtr luaState ) : int
enumFromInt ( IntPtr luaState ) : int
getAsType ( IntPtr luaState, int stackPos, Type paramType ) : object
getConstructorSignature ( IntPtr luaState ) : int
getFunction ( IntPtr luaState, int index ) : LuaFunction
getMethodSignature ( IntPtr luaState ) : int
getNetObject ( IntPtr luaState, int index ) : object
getObject ( IntPtr luaState, int index ) : object
getRawNetObject ( IntPtr luaState, int index ) : object
getTable ( IntPtr luaState, int index ) : LuaTable
getUserData ( IntPtr luaState, int index ) : LuaUserData
importType ( IntPtr luaState ) : int
loadAssembly ( IntPtr luaState ) : int
matchParameters ( IntPtr luaState, MethodBase method, MethodCache &methodCache ) : bool
popValues ( IntPtr luaState, int oldTop ) : object[]
popValues ( IntPtr luaState, int oldTop, Type popTypes ) : object[]
push ( IntPtr luaState, object o ) : void
pushFunction ( IntPtr luaState, LuaCSFunction func ) : void
pushNewObject ( IntPtr luaState, object o, int index, string metatable ) : void
pushObject ( IntPtr luaState, object o, string metatable ) : void
pushType ( IntPtr luaState, Type t ) : void
registerTable ( IntPtr luaState ) : int
returnValues ( IntPtr luaState, object returnValues ) : int
setGlobalFunctions ( IntPtr luaState ) : void
tableToArray ( object luaParamValue, Type paramArrayType ) : Array
throwError ( IntPtr luaState, object e ) : void
typeOf ( IntPtr luaState, int idx ) : Type
unregisterTable ( IntPtr luaState ) : int

Method Details

ObjectTranslator() public method

public ObjectTranslator ( LuaInterface.Lua interpreter, IntPtr luaState ) : System
interpreter LuaInterface.Lua
luaState System.IntPtr
return System

pushError() public method

public pushError ( IntPtr luaState, string msg ) : int
luaState IntPtr
msg string
return int

Property Details

objects public_oe property

public Dictionary objects
return object>.Dictionary

objectsBackMap public_oe property

public Dictionary objectsBackMap
return int>.Dictionary