Beispiel #1
0
    static int _CreatePureMVC_Patterns_Proxy_Proxy(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                string arg0 = ToLua.CheckString(L, 1);
                PureMVC.Patterns.Proxy.Proxy obj = new PureMVC.Patterns.Proxy.Proxy(arg0);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 2)
            {
                string arg0 = ToLua.CheckString(L, 1);
                object arg1 = ToLua.ToVarObject(L, 2);
                PureMVC.Patterns.Proxy.Proxy obj = new PureMVC.Patterns.Proxy.Proxy(arg0, arg1);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: PureMVC.Patterns.Proxy.Proxy.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Beispiel #2
0
 static int OnRemove(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         PureMVC.Patterns.Proxy.Proxy obj = (PureMVC.Patterns.Proxy.Proxy)ToLua.CheckObject <PureMVC.Patterns.Proxy.Proxy>(L, 1);
         obj.OnRemove();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #3
0
    static int get_ProxyName(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            PureMVC.Patterns.Proxy.Proxy obj = (PureMVC.Patterns.Proxy.Proxy)o;
            string ret = obj.ProxyName;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ProxyName on a nil value"));
        }
    }
Beispiel #4
0
    static int set_Data(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            PureMVC.Patterns.Proxy.Proxy obj = (PureMVC.Patterns.Proxy.Proxy)o;
            object arg0 = ToLua.ToVarObject(L, 2);
            obj.Data = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Data on a nil value"));
        }
    }
Beispiel #5
0
    static int get_Data(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            PureMVC.Patterns.Proxy.Proxy obj = (PureMVC.Patterns.Proxy.Proxy)o;
            object ret = obj.Data;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Data on a nil value"));
        }
    }