Beispiel #1
0
    static int get_characterValidation(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIInputFieldSubmit obj = (UIInputFieldSubmit)o;
            UIInputFieldSubmit.CharacterValidation ret = obj.characterValidation;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index characterValidation on a nil value" : e.Message));
        }
    }
Beispiel #2
0
    static int set_characterValidation(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIInputFieldSubmit obj = (UIInputFieldSubmit)o;
            UIInputFieldSubmit.CharacterValidation arg0 = (UIInputFieldSubmit.CharacterValidation)ToLua.CheckObject(L, 2, typeof(UIInputFieldSubmit.CharacterValidation));
            obj.characterValidation = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index characterValidation on a nil value" : e.Message));
        }
    }