| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class Wenting_Lebian_QueryUpdateErrorCodeWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginEnum(typeof(Wenting.Lebian.QueryUpdateErrorCode));
- L.RegVar("Error", get_Error, null);
- L.RegVar("NoUpdate", get_NoUpdate, null);
- L.RegVar("Update", get_Update, null);
- L.RegVar("ForceUpdate", get_ForceUpdate, null);
- L.RegFunction("IntToEnum", IntToEnum);
- L.EndEnum();
- TypeTraits<Wenting.Lebian.QueryUpdateErrorCode>.Check = CheckType;
- StackTraits<Wenting.Lebian.QueryUpdateErrorCode>.Push = Push;
- }
- static void Push(IntPtr L, Wenting.Lebian.QueryUpdateErrorCode arg)
- {
- ToLua.Push(L, arg);
- }
- static bool CheckType(IntPtr L, int pos)
- {
- return TypeChecker.CheckEnumType(typeof(Wenting.Lebian.QueryUpdateErrorCode), L, pos);
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Error(IntPtr L)
- {
- ToLua.Push(L, Wenting.Lebian.QueryUpdateErrorCode.Error);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_NoUpdate(IntPtr L)
- {
- ToLua.Push(L, Wenting.Lebian.QueryUpdateErrorCode.NoUpdate);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Update(IntPtr L)
- {
- ToLua.Push(L, Wenting.Lebian.QueryUpdateErrorCode.Update);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_ForceUpdate(IntPtr L)
- {
- ToLua.Push(L, Wenting.Lebian.QueryUpdateErrorCode.ForceUpdate);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int IntToEnum(IntPtr L)
- {
- int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
- Wenting.Lebian.QueryUpdateErrorCode o = (Wenting.Lebian.QueryUpdateErrorCode)arg0;
- ToLua.Push(L, o);
- return 1;
- }
- }
|