Ejemplo n.º 1
0
 public DelegateWrapper(Func <IList <object>, object> func)
 {
     _func            = func;
     _functionHandler = Call;
 }
Ejemplo n.º 2
0
        public static void PushFunction(ScriptState luaState, ScriptFunctionHandler call)
        {
            IntPtr ptrCall = ConvertDelegateToIntPtr(call);

            ScriptApi.PushFunction(luaState, ptrCall);
        }
Ejemplo n.º 3
0
        public static void RegisterMethod(ScriptState luaState, string methodName, ScriptFunctionHandler fn)
        {
            var ptr = ConvertDelegateToIntPtr(fn);

            ScriptApi.RegisterMethod(luaState, methodName, ptr);
        }
Ejemplo n.º 4
0
        public static void Atpanic(ScriptState luaState, ScriptFunctionHandler fn)
        {
            var ptr = ConvertDelegateToIntPtr(fn);

            ScriptApi.Atpanic(luaState, ptr);
        }
Ejemplo n.º 5
0
 internal ScriptFunction(ScriptState luaState, ScriptFunctionHandler func)
 {
     _luaState  = luaState;
     _func      = func;
     _reference = -1;
 }
Ejemplo n.º 6
0
 public MethodWrapper(MethodFinder finder)
 {
     _finder          = finder;
     _functionHandler = Call;
 }