예제 #1
0
    static int IntToEnum(IntPtr L)
    {
        int arg0 = (int)LuaDLL.lua_tonumber(L, 1);

        Games.Module.Wars.OverType o = (Games.Module.Wars.OverType)arg0;
        LuaScriptMgr.Push(L, o);
        return(1);
    }
    static int Over(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 1)
        {
            Games.Module.Wars.OverType arg0 = (Games.Module.Wars.OverType)LuaScriptMgr.GetNetObject(L, 1, typeof(Games.Module.Wars.OverType));
            Games.Module.Wars.War.Over(arg0);
            return(0);
        }
        else if (count == 2)
        {
            Games.Module.Wars.OverType arg0 = (Games.Module.Wars.OverType)LuaScriptMgr.GetNetObject(L, 1, typeof(Games.Module.Wars.OverType));
            bool arg1 = LuaScriptMgr.GetBoolean(L, 2);
            Games.Module.Wars.War.Over(arg0, arg1);
            return(0);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: Games.Module.Wars.War.Over");
        }

        return(0);
    }