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

        try
        {
            o = ToLua.ToObject(L, 1);
            UIInput             obj  = (UIInput)o;
            UIInput.OnReturnKey arg0 = (UIInput.OnReturnKey)ToLua.CheckObject(L, 2, typeof(UIInput.OnReturnKey));
            obj.onReturnKey = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onReturnKey on a nil value" : e.Message));
        }
    }
コード例 #2
0
    static int get_onReturnKey(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIInput             obj = (UIInput)o;
            UIInput.OnReturnKey ret = obj.onReturnKey;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onReturnKey on a nil value" : e.Message));
        }
    }
コード例 #3
0
    private static int set_onReturnKey(IntPtr L)
    {
        object obj = null;
        int    result;

        try
        {
            obj = ToLua.ToObject(L, 1);
            UIInput             uIInput     = (UIInput)obj;
            UIInput.OnReturnKey onReturnKey = (UIInput.OnReturnKey)((int)ToLua.CheckObject(L, 2, typeof(UIInput.OnReturnKey)));
            uIInput.onReturnKey = onReturnKey;
            result = 0;
        }
        catch (Exception ex)
        {
            result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index onReturnKey on a nil value");
        }
        return(result);
    }
コード例 #4
0
    private static int get_onReturnKey(IntPtr L)
    {
        object obj = null;
        int    result;

        try
        {
            obj = ToLua.ToObject(L, 1);
            UIInput             uIInput     = (UIInput)obj;
            UIInput.OnReturnKey onReturnKey = uIInput.onReturnKey;
            ToLua.Push(L, onReturnKey);
            result = 1;
        }
        catch (Exception ex)
        {
            result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index onReturnKey on a nil value");
        }
        return(result);
    }