Beispiel #1
0
 static int ResInitialize(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         FirClient.Manager.GameManager obj = (FirClient.Manager.GameManager)ToLua.CheckObject <FirClient.Manager.GameManager>(L, 1);
         obj.ResInitialize();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #2
0
    static int _CreateFirClient_Manager_GameManager(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                FirClient.Manager.GameManager obj = new FirClient.Manager.GameManager();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: FirClient.Manager.GameManager.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }