Example #1
0
    static int get_Args(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            EventSystem.Show_UI_Event obj = (EventSystem.Show_UI_Event)o;
            UIInitArguments           ret = obj.Args;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Args on a nil value" : e.Message));
        }
    }
Example #2
0
    static int set_Args(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            EventSystem.Show_UI_Event obj  = (EventSystem.Show_UI_Event)o;
            UIInitArguments           arg0 = (UIInitArguments)ToLua.CheckObject(L, 2, typeof(UIInitArguments));
            obj.Args = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Args on a nil value" : e.Message));
        }
    }
Example #3
0
    static int _CreateEventSystem_Show_UI_Event(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                UIConfig                  arg0 = (UIConfig)ToLua.CheckObject(L, 1, typeof(UIConfig));
                UIInitArguments           arg1 = (UIInitArguments)ToLua.CheckObject(L, 2, typeof(UIInitArguments));
                EventSystem.Show_UI_Event obj  = new EventSystem.Show_UI_Event(arg0, arg1);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: EventSystem.Show_UI_Event.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }