コード例 #1
0
    static int get_onInitComplete(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Common.UI.Components.ScrollContent  obj = (Common.UI.Components.ScrollContent)o;
            Common.UI.Components.OnInitComplete ret = obj.onInitComplete;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onInitComplete on a nil value" : e.Message));
        }
    }
コード例 #2
0
    static int set_onInitComplete(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Common.UI.Components.ScrollContent  obj  = (Common.UI.Components.ScrollContent)o;
            Common.UI.Components.OnInitComplete arg0 = (Common.UI.Components.OnInitComplete)ToLua.CheckObject(L, 2, typeof(Common.UI.Components.OnInitComplete));
            obj.onInitComplete = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onInitComplete on a nil value" : e.Message));
        }
    }
コード例 #3
0
    static int _CreateCommon_UI_Components_OnInitComplete(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

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