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

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

        try
        {
            o = ToLua.ToObject(L, 1);
            SDKInterface obj = (SDKInterface)o;
            SDKInterface.LogoutHandler ret = obj.OnLogout;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index OnLogout on a nil value"));
        }
    }
Example #3
0
    private static int get_OnLogout(IntPtr L)
    {
        object obj = null;
        int    result;

        try
        {
            obj = ToLua.ToObject(L, 1);
            SDKInterface sDKInterface           = (SDKInterface)obj;
            SDKInterface.LogoutHandler onLogout = sDKInterface.OnLogout;
            ToLua.Push(L, onLogout);
            result = 1;
        }
        catch (Exception ex)
        {
            result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index OnLogout on a nil value");
        }
        return(result);
    }