Exemplo n.º 1
0
 internal void ClaimMilestone(NativeQuestMilestone milestone,
                              Action <ClaimMilestoneResponse> callback)
 {
     C.QuestManager_ClaimMilestone(
         mServices.AsHandle(),
         milestone.AsPointer(),
         InternalClaimMilestoneCallback,
         Callbacks.ToIntPtr <ClaimMilestoneResponse>(
             callback, ClaimMilestoneResponse.FromPointer));
 }
Exemplo n.º 2
0
 internal NativeQuestMilestone MilestoneToClaim()
 {
     if (this.RequestSucceeded())
     {
         NativeQuestMilestone milestone = new NativeQuestMilestone(GooglePlayGames.Native.Cwrapper.QuestManager.QuestManager_QuestUIResponse_GetMilestoneToClaim(base.SelfPtr()));
         if (milestone.Valid())
         {
             return(milestone);
         }
         milestone.Dispose();
     }
     return(null);
 }
Exemplo n.º 3
0
            internal NativeQuestMilestone ClaimedMilestone()
            {
                if (!this.RequestSucceeded())
                {
                    return((NativeQuestMilestone)null);
                }
                NativeQuestMilestone nativeQuestMilestone = new NativeQuestMilestone(GooglePlayGames.Native.Cwrapper.QuestManager.QuestManager_ClaimMilestoneResponse_GetClaimedMilestone(this.SelfPtr()));

                if (nativeQuestMilestone.Valid())
                {
                    return(nativeQuestMilestone);
                }
                nativeQuestMilestone.Dispose();
                return((NativeQuestMilestone)null);
            }
Exemplo n.º 4
0
            internal NativeQuestMilestone MilestoneToClaim()
            {
                if (!RequestSucceeded())
                {
                    return(null);
                }
                NativeQuestMilestone nativeQuestMilestone = new NativeQuestMilestone(GooglePlayGames.Native.Cwrapper.QuestManager.QuestManager_QuestUIResponse_GetMilestoneToClaim(SelfPtr()));

                if (nativeQuestMilestone.Valid())
                {
                    return(nativeQuestMilestone);
                }
                nativeQuestMilestone.Dispose();
                return(null);
            }
Exemplo n.º 5
0
            internal NativeQuestMilestone MilestoneToClaim()
            {
                if (!RequestSucceeded())
                {
                    return(null);
                }

                var milestone = new NativeQuestMilestone(
                    C.QuestManager_QuestUIResponse_GetMilestoneToClaim(SelfPtr()));

                if (milestone.Valid())
                {
                    return(milestone);
                }
                else
                {
                    milestone.Dispose();
                    return(null);
                }
            }
            internal NativeQuestMilestone MilestoneToClaim()
            {
                if (!RequestSucceeded())
                {
                    return null;
                }

                var milestone = new NativeQuestMilestone(
                                C.QuestManager_QuestUIResponse_GetMilestoneToClaim(SelfPtr()));

                if (milestone.Valid())
                {
                    return milestone;
                }
                else
                {
                    milestone.Dispose();
                    return null;
                }
            }
 internal void ClaimMilestone(NativeQuestMilestone milestone,
                          Action<ClaimMilestoneResponse> callback)
 {
     C.QuestManager_ClaimMilestone(
         mServices.AsHandle(),
         milestone.AsPointer(),
         InternalClaimMilestoneCallback,
         Callbacks.ToIntPtr<ClaimMilestoneResponse>(
             callback, ClaimMilestoneResponse.FromPointer));
 }
Exemplo n.º 8
0
 internal void ClaimMilestone(NativeQuestMilestone milestone, Action <ClaimMilestoneResponse> callback)
 {
     GooglePlayGames.Native.Cwrapper.QuestManager.QuestManager_ClaimMilestone(this.mServices.AsHandle(), milestone.AsPointer(), new GooglePlayGames.Native.Cwrapper.QuestManager.ClaimMilestoneCallback(GooglePlayGames.Native.PInvoke.QuestManager.InternalClaimMilestoneCallback), Callbacks.ToIntPtr <ClaimMilestoneResponse>(callback, new Func <IntPtr, ClaimMilestoneResponse>(ClaimMilestoneResponse.FromPointer)));
 }
Exemplo n.º 9
0
 internal void ClaimMilestone(NativeQuestMilestone milestone, Action <ClaimMilestoneResponse> callback)
 {
     GooglePlayGames.Native.Cwrapper.QuestManager.QuestManager_ClaimMilestone(mServices.AsHandle(), milestone.AsPointer(), InternalClaimMilestoneCallback, Callbacks.ToIntPtr(callback, ClaimMilestoneResponse.FromPointer));
 }