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

        try
        {
            o = ToLua.ToObject(L, 1);
            GameSDKInterface obj = (GameSDKInterface)o;
            GameSDKInterface.LogoutHandler arg0 = (GameSDKInterface.LogoutHandler)ToLua.CheckDelegate <GameSDKInterface.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);
            GameSDKInterface obj = (GameSDKInterface)o;
            GameSDKInterface.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"));
        }
    }