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

        try
        {
            o = ToLua.ToObject(L, 1);
            UIWindowBase obj = (UIWindowBase)o;
            UIWindowBase.WindowStatus arg0 = (UIWindowBase.WindowStatus)ToLua.CheckObject(L, 2, typeof(UIWindowBase.WindowStatus));
            obj.windowStatus = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index windowStatus on a nil value" : e.Message));
        }
    }
Exemplo n.º 2
0
    static int get_windowStatus(IntPtr L)
    {
        object o = null;

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