Пример #1
0
 internal void Accept(NativeQuest quest, Action <AcceptResponse> callback)
 {
     C.QuestManager_Accept(
         mServices.AsHandle(),
         quest.AsPointer(),
         InternalAcceptCallback,
         Callbacks.ToIntPtr <AcceptResponse>(callback, AcceptResponse.FromPointer));
 }
Пример #2
0
 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));
 }
Пример #4
0
 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);
 }
Пример #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);
            }
Пример #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);
            }
Пример #7
0
            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);
                }
            }
Пример #8
0
            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;
                }
            }
Пример #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)));
 }
Пример #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)));
 }
Пример #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));
 }
Пример #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));
 }