Example #1
0
    static int set_OnPaySuc(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SDKInterface obj = (SDKInterface)o;
            SDKInterface.PaySucHandler arg0 = (SDKInterface.PaySucHandler)ToLua.CheckDelegate <SDKInterface.PaySucHandler>(L, 2);
            obj.OnPaySuc = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index OnPaySuc on a nil value"));
        }
    }
Example #2
0
    static int get_OnPaySuc(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SDKInterface obj = (SDKInterface)o;
            SDKInterface.PaySucHandler ret = obj.OnPaySuc;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index OnPaySuc on a nil value"));
        }
    }