| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class BattleSubModeWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginEnum(typeof(BattleSubMode), "BattleSubMode");
- L.RegVar("None", get_None, null);
- L.RegVar("WorldBoss", get_WorldBoss, null);
- L.RegVar("NewbieBoss", get_NewbieBoss, null);
- L.RegVar("Resource", get_Resource, null);
- L.RegVar("Guild", get_Guild, null);
- L.RegVar("ClimbingTower", get_ClimbingTower, null);
- L.RegVar("Expedition", get_Expedition, null);
- L.RegVar("Arena", get_Arena, null);
- L.RegVar("HundredDojo", get_HundredDojo, null);
- L.RegVar("GvG", get_GvG, null);
- L.RegVar("Voyage", get_Voyage, null);
- L.RegVar("PvPClimbinglower", get_PvPClimbinglower, null);
- L.RegVar("GuildEx", get_GuildEx, null);
- L.RegVar("HundredDojoEx", get_HundredDojoEx, null);
- L.RegFunction("IntToEnum", IntToEnum);
- L.EndEnum();
- TypeTraits<BattleSubMode>.Check = CheckType;
- StackTraits<BattleSubMode>.Push = Push;
- }
- static void Push(IntPtr L, BattleSubMode arg)
- {
- ToLua.Push(L, arg);
- }
- static bool CheckType(IntPtr L, int pos)
- {
- return TypeChecker.CheckEnumType(typeof(BattleSubMode), L, pos);
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_None(IntPtr L)
- {
- ToLua.Push(L, BattleSubMode.None);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_WorldBoss(IntPtr L)
- {
- ToLua.Push(L, BattleSubMode.WorldBoss);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_NewbieBoss(IntPtr L)
- {
- ToLua.Push(L, BattleSubMode.NewbieBoss);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Resource(IntPtr L)
- {
- ToLua.Push(L, BattleSubMode.Resource);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Guild(IntPtr L)
- {
- ToLua.Push(L, BattleSubMode.Guild);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_ClimbingTower(IntPtr L)
- {
- ToLua.Push(L, BattleSubMode.ClimbingTower);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Expedition(IntPtr L)
- {
- ToLua.Push(L, BattleSubMode.Expedition);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Arena(IntPtr L)
- {
- ToLua.Push(L, BattleSubMode.Arena);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_HundredDojo(IntPtr L)
- {
- ToLua.Push(L, BattleSubMode.HundredDojo);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_GvG(IntPtr L)
- {
- ToLua.Push(L, BattleSubMode.GvG);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Voyage(IntPtr L)
- {
- ToLua.Push(L, BattleSubMode.Voyage);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_PvPClimbinglower(IntPtr L)
- {
- ToLua.Push(L, BattleSubMode.PvPClimbinglower);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_GuildEx(IntPtr L)
- {
- ToLua.Push(L, BattleSubMode.GuildEx);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_HundredDojoEx(IntPtr L)
- {
- ToLua.Push(L, BattleSubMode.HundredDojoEx);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int IntToEnum(IntPtr L)
- {
- int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
- BattleSubMode o = (BattleSubMode)arg0;
- ToLua.Push(L, o);
- return 1;
- }
- }
|