static int Update(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         ANFramework.Managers obj = (ANFramework.Managers)ToLua.CheckObject <ANFramework.Managers>(L, 1);
         obj.Update();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int AddManager(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         ANFramework.Managers    obj  = (ANFramework.Managers)ToLua.CheckObject <ANFramework.Managers>(L, 1);
         ANFramework.BaseManager arg0 = (ANFramework.BaseManager)ToLua.CheckObject <ANFramework.BaseManager>(L, 2);
         obj.AddManager(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #3
0
    static int get_Mgr(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ANFramework.ANF      obj = (ANFramework.ANF)o;
            ANFramework.Managers ret = obj.Mgr;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Mgr on a nil value"));
        }
    }
    static int get_Coroutine(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ANFramework.Managers         obj = (ANFramework.Managers)o;
            ANFramework.CoroutineManager ret = obj.Coroutine;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Coroutine on a nil value"));
        }
    }
    static int _CreateANFramework_Managers(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                ANFramework.Managers obj = new ANFramework.Managers();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: ANFramework.Managers.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Beispiel #6
0
 private ANF()
 {
     m_Managers = new Managers();
     m_States   = new States();
 }