|
|
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
-
- public class UnityEngine_CustomYieldInstructionWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(UnityEngine.CustomYieldInstruction), typeof(System.Object));
- L.RegFunction("MoveNext", MoveNext);
- L.RegFunction("Reset", Reset);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("keepWaiting", get_keepWaiting, null);
- L.RegVar("Current", get_Current, null);
- L.EndClass();
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int MoveNext(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- UnityEngine.CustomYieldInstruction obj = (UnityEngine.CustomYieldInstruction)ToLua.CheckObject(L, 1, typeof(UnityEngine.CustomYieldInstruction));
- bool o = obj.MoveNext();
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Reset(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- UnityEngine.CustomYieldInstruction obj = (UnityEngine.CustomYieldInstruction)ToLua.CheckObject(L, 1, typeof(UnityEngine.CustomYieldInstruction));
- obj.Reset();
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_keepWaiting(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.CustomYieldInstruction obj = (UnityEngine.CustomYieldInstruction)o;
- bool ret = obj.keepWaiting;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index keepWaiting on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Current(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.CustomYieldInstruction obj = (UnityEngine.CustomYieldInstruction)o;
- object ret = obj.Current;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Current on a nil value" : e.Message);
- }
- }
- }
-
|