예제 #1
0
 internal void ClaimMilestone(NativeQuestMilestone milestone,
                              Action <ClaimMilestoneResponse> callback)
 {
     C.QuestManager_ClaimMilestone(
         mServices.AsHandle(),
         milestone.AsPointer(),
         InternalClaimMilestoneCallback,
         Callbacks.ToIntPtr <ClaimMilestoneResponse>(
             callback, ClaimMilestoneResponse.FromPointer));
 }
예제 #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);
 }
예제 #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);
            }
예제 #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);
            }
예제 #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));
 }
예제 #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)));
 }
예제 #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));
 }