internal void Accept(NativeQuest quest, Action <AcceptResponse> callback)
 {
     C.QuestManager_Accept(
         mServices.AsHandle(),
         quest.AsPointer(),
         InternalAcceptCallback,
         Callbacks.ToIntPtr <AcceptResponse>(callback, AcceptResponse.FromPointer));
 }
 internal void ShowQuestUI(NativeQuest quest, Action <QuestUIResponse> callback)
 {
     C.QuestManager_ShowUI(
         mServices.AsHandle(),
         quest.AsPointer(),
         InternalQuestUICallback,
         Callbacks.ToIntPtr <QuestUIResponse>(
             callback, QuestUIResponse.FromPointer));
 }
 internal void ShowQuestUI(NativeQuest quest, Action<QuestUIResponse> callback)
 {
     C.QuestManager_ShowUI(
         mServices.AsHandle(),
         quest.AsPointer(),
         InternalQuestUICallback,
         Callbacks.ToIntPtr<QuestUIResponse>(
             callback, QuestUIResponse.FromPointer));
 }
 internal NativeQuest AcceptedQuest()
 {
     if (this.RequestSucceeded())
     {
         NativeQuest quest = new NativeQuest(GooglePlayGames.Native.Cwrapper.QuestManager.QuestManager_QuestUIResponse_GetAcceptedQuest(base.SelfPtr()));
         if (quest.Valid())
         {
             return(quest);
         }
         quest.Dispose();
     }
     return(null);
 }
Beispiel #5
0
            internal NativeQuest AcceptedQuest()
            {
                if (!this.RequestSucceeded())
                {
                    return((NativeQuest)null);
                }
                NativeQuest nativeQuest = new NativeQuest(GooglePlayGames.Native.Cwrapper.QuestManager.QuestManager_QuestUIResponse_GetAcceptedQuest(this.SelfPtr()));

                if (nativeQuest.Valid())
                {
                    return(nativeQuest);
                }
                nativeQuest.Dispose();
                return((NativeQuest)null);
            }
Beispiel #6
0
            internal NativeQuest Quest()
            {
                if (!RequestSucceeded())
                {
                    return(null);
                }
                NativeQuest nativeQuest = new NativeQuest(GooglePlayGames.Native.Cwrapper.QuestManager.QuestManager_ClaimMilestoneResponse_GetQuest(SelfPtr()));

                if (nativeQuest.Valid())
                {
                    return(nativeQuest);
                }
                nativeQuest.Dispose();
                return(null);
            }
            internal NativeQuest Quest()
            {
                if (!RequestSucceeded())
                {
                    return(null);
                }

                var quest = new NativeQuest(C.QuestManager_ClaimMilestoneResponse_GetQuest(SelfPtr()));

                if (quest.Valid())
                {
                    return(quest);
                }
                else
                {
                    quest.Dispose();
                    return(null);
                }
            }
            internal NativeQuest AcceptedQuest()
            {
                if (!RequestSucceeded())
                {
                    return(null);
                }

                var quest = new NativeQuest(
                    C.QuestManager_QuestUIResponse_GetAcceptedQuest(SelfPtr()));

                if (quest.Valid())
                {
                    return(quest);
                }
                else
                {
                    quest.Dispose();
                    return(null);
                }
            }
 internal void Accept(NativeQuest quest, Action<AcceptResponse> callback)
 {
     C.QuestManager_Accept(
         mServices.AsHandle(),
         quest.AsPointer(),
         InternalAcceptCallback,
         Callbacks.ToIntPtr<AcceptResponse>(callback, AcceptResponse.FromPointer));
 }
            internal NativeQuest AcceptedQuest()
            {
                if (!RequestSucceeded())
                {
                    return null;
                }

                var quest = new NativeQuest(
                            C.QuestManager_QuestUIResponse_GetAcceptedQuest(SelfPtr()));

                if (quest.Valid())
                {
                    return quest;
                }
                else
                {
                    quest.Dispose();
                    return null;
                }
            }
            internal NativeQuest Quest()
            {
                if (!RequestSucceeded())
                {
                    return null;
                }

                var quest = new NativeQuest(C.QuestManager_ClaimMilestoneResponse_GetQuest(SelfPtr()));

                if (quest.Valid())
                {
                    return quest;
                }
                else
                {
                    quest.Dispose();
                    return null;
                }
            }
Beispiel #12
0
 internal void ShowQuestUI(NativeQuest quest, Action <QuestUIResponse> callback)
 {
     GooglePlayGames.Native.Cwrapper.QuestManager.QuestManager_ShowUI(this.mServices.AsHandle(), quest.AsPointer(), new GooglePlayGames.Native.Cwrapper.QuestManager.QuestUICallback(GooglePlayGames.Native.PInvoke.QuestManager.InternalQuestUICallback), Callbacks.ToIntPtr <QuestUIResponse>(callback, new Func <IntPtr, QuestUIResponse>(QuestUIResponse.FromPointer)));
 }
Beispiel #13
0
 internal void Accept(NativeQuest quest, Action <AcceptResponse> callback)
 {
     GooglePlayGames.Native.Cwrapper.QuestManager.QuestManager_Accept(this.mServices.AsHandle(), quest.AsPointer(), new GooglePlayGames.Native.Cwrapper.QuestManager.AcceptCallback(GooglePlayGames.Native.PInvoke.QuestManager.InternalAcceptCallback), Callbacks.ToIntPtr <AcceptResponse>(callback, new Func <IntPtr, AcceptResponse>(AcceptResponse.FromPointer)));
 }
Beispiel #14
0
 internal void Accept(NativeQuest quest, Action <AcceptResponse> callback)
 {
     GooglePlayGames.Native.Cwrapper.QuestManager.QuestManager_Accept(mServices.AsHandle(), quest.AsPointer(), InternalAcceptCallback, Callbacks.ToIntPtr(callback, AcceptResponse.FromPointer));
 }
Beispiel #15
0
 internal void ShowQuestUI(NativeQuest quest, Action <QuestUIResponse> callback)
 {
     GooglePlayGames.Native.Cwrapper.QuestManager.QuestManager_ShowUI(mServices.AsHandle(), quest.AsPointer(), InternalQuestUICallback, Callbacks.ToIntPtr(callback, QuestUIResponse.FromPointer));
 }