Exemplo n.º 1
0
    static int get_m_playType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.Handle          obj = (UI.Handle)o;
            UI.Handle.PlayType ret = obj.m_playType;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_playType on a nil value" : e.Message));
        }
    }
Exemplo n.º 2
0
    static int set_m_playType(IntPtr L)
    {
        object o = null;

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