| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class BattleModeWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginEnum(typeof(BattleMode), "BattleMode");
- L.RegVar("None", get_None, null);
- L.RegVar("Normal", get_Normal, null);
- L.RegVar("Versus", get_Versus, null);
- L.RegVar("Boss", get_Boss, null);
- L.RegVar("Time", get_Time, null);
- L.RegFunction("IntToEnum", IntToEnum);
- L.EndEnum();
- TypeTraits<BattleMode>.Check = CheckType;
- StackTraits<BattleMode>.Push = Push;
- }
- static void Push(IntPtr L, BattleMode arg)
- {
- ToLua.Push(L, arg);
- }
- static bool CheckType(IntPtr L, int pos)
- {
- return TypeChecker.CheckEnumType(typeof(BattleMode), L, pos);
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_None(IntPtr L)
- {
- ToLua.Push(L, BattleMode.None);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Normal(IntPtr L)
- {
- ToLua.Push(L, BattleMode.Normal);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Versus(IntPtr L)
- {
- ToLua.Push(L, BattleMode.Versus);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Boss(IntPtr L)
- {
- ToLua.Push(L, BattleMode.Boss);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Time(IntPtr L)
- {
- ToLua.Push(L, BattleMode.Time);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int IntToEnum(IntPtr L)
- {
- int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
- BattleMode o = (BattleMode)arg0;
- ToLua.Push(L, o);
- return 1;
- }
- }
|