Exemple #1
0
    static int set_m_dir(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.UIScrollWrap       obj  = (UI.UIScrollWrap)o;
            UI.UIScrollWrap.enDir arg0 = (UI.UIScrollWrap.enDir)ToLua.CheckObject(L, 2, typeof(UI.UIScrollWrap.enDir));
            obj.m_dir = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_dir on a nil value" : e.Message));
        }
    }
Exemple #2
0
    static int get_m_dir(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.UIScrollWrap       obj = (UI.UIScrollWrap)o;
            UI.UIScrollWrap.enDir ret = obj.m_dir;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_dir on a nil value" : e.Message));
        }
    }