Skip to content

McpClashMobBase

Class in IpDrv · IpDrv.McpClashMobBase · abstract, config

Object › McpServiceBase › McpClashMobBase

Subclasses: McpClashMobManager, McpClashMobManagerV3

Using it from Lua
h7.find_all("McpClashMobBase")            -- live instances
h7.find_class("IpDrv.McpClashMobBase")   -- the class
h7.hook("IpDrv.McpClashMobBase.AcceptChallenge", fn)

Enums

McpChallengeFileStatus

MCFS_NotStarted = 0, MCFS_Pending = 1, MCFS_Success = 2, MCFS_Failed = 3

McpChallengeRatingType

MCRT_NOT_RATED = 0, MCRT_TOTAL_PROGRESS = 1, MCRT_HIGH_PROGRESS = 2

McpChildChallengeGatingType

MCCGT_NONE = 0, MCCGT_SUCCESS = 1, MCCGT_RAW_SCORE = 2, MCCGT_TOP_N_PERCENT = 3, MCCGT_TOP_N_ENTRIES = 4

Structs

McpChildClashMobEntry

FieldType
Orderint
ChildChallengeIdString

McpClashMobChallengeEvent

FieldType
unique_challenge_idstring
visible_datestring
start_datestring
end_datestring
completed_datestring
purge_datestring
challenge_typestring
num_attemptsint
num_successful_attemptsint
goal_valueint
goal_start_valueint
goal_current_valueint
has_startedbool
is_visiblebool
has_completedbool
was_successfulbool
file_listarray<McpClashMobChallengeFile>
facebook_likesint
facebook_commentsint
facebook_like_scalerfloat
facebook_comment_scalerfloat
facebook_like_goal_progressint
facebook_comment_goal_progressint
facebook_idstring
twitter_retweetsint
twitter_retweets_scalerfloat
twitter_goal_progressint
twitter_idstring
StartedAtString
ParentChallengeIdString
ChildChallengeListarray<McpChildClashMobEntry>
ActiveChildChallengeIdString
ChildChallengeGatingTypeMcpChildChallengeGatingType
ChildChallengeGatingValuefloat
ChallengeRatingTypeMcpChallengeRatingType
MinChallengeDurationint

McpClashMobChallengeFile

FieldType
should_keep_post_challengebool
title_idstring
file_namestring
dl_namestring
hash_codestring
typestring
StatusMcpChallengeFileStatus

McpClashMobChallengeUserStatus

FieldType
unique_challenge_idstring
unique_user_idstring
save_slot_idstring
num_attemptsint
num_successful_attemptsint
goal_progressint
did_completebool
last_update_timestring
user_award_givenint
accept_timestring
did_preregisterbool
facebook_like_timestring
enrolled_via_facebookbool
liked_via_facebookbool
commented_via_facebookbool
twitter_retweet_timestring
enrolled_via_twitterbool
retweetedbool
HighGoalProgressint
PercentRankfloat
Rankint

McpClashMobPushNotification

FieldType
device_tokensarray
badge_typestring
soundstring
messagestring
paramsMcpClashMobPushNotificationParams

McpClashMobPushNotificationParams

FieldType
bahint

Properties

NameTypeNotes
McpClashMobClassNameStringconfig

Functions

NameDeclaration
AcceptChallengefunction AcceptChallenge(string UniqueChallengeId, string UniqueUserId, String SaveSlotId, bool bLiked = false, bool bCommented = false, bool bRetweeted = false)
ClearCachedChallengeFilefunction ClearCachedChallengeFile(string UniqueChallengeId, string DlName)
CreateInstancestatic final function McpClashMobBase CreateInstance()
DeleteCachedChallengeFilefunction DeleteCachedChallengeFile(string UniqueChallengeId, string DlName)
DownloadChallengeFilefunction DownloadChallengeFile(string UniqueChallengeId, string DlName)
GetChallengefunction bool GetChallenge(String UniqueChallengeId, out McpClashMobChallengeEvent OutChallengeEvent)
GetChallengeFileContentsfunction GetChallengeFileContents(string UniqueChallengeId, string DlName, out array OutFileContents)
GetChallengeFileListfunction GetChallengeFileList(string UniqueChallengeId, out array<McpClashMobChallengeFile> OutChallengeFiles)
GetChallengeListfunction GetChallengeList(out array<McpClashMobChallengeEvent> OutChallengeEvents)
GetChallengeUserStatusfunction GetChallengeUserStatus(string UniqueChallengeId, string UniqueUserId, out array<McpClashMobChallengeUserStatus> OutChallengeUserStatuses)
GetChallengeUserStatusForSaveSlotfunction bool GetChallengeUserStatusForSaveSlot(string UniqueChallengeId, string UniqueUserId, String SaveSlotId, out McpClashMobChallengeUserStatus OutChallengeUserStatus)
OnAcceptChallengeCompletedelegate OnAcceptChallengeComplete(bool bWasSuccessful, string UniqueChallengeId, string UniqueUserId, String Error)
OnDownloadChallengeFileCompletedelegate OnDownloadChallengeFileComplete(bool bWasSuccessful, string UniqueChallengeId, string DlName, string FileName, string Error)
OnQueryChallengeCompletedelegate OnQueryChallengeComplete(bool bWasSuccessful, String ChallengeId, String Error)
OnQueryChallengeListCompletedelegate OnQueryChallengeListComplete(bool bWasSuccessful, String Error)
OnQueryChallengeUserStatusCompletedelegate OnQueryChallengeUserStatusComplete(bool bWasSuccessful, string UniqueChallengeId, string UniqueUserId, String Error)
OnUpdateChallengeUserProgressCompletedelegate OnUpdateChallengeUserProgressComplete(bool bWasSuccessful, string UniqueChallengeId, string UniqueUserId, String Error)
OnUpdateChallengeUserRewardCompletedelegate OnUpdateChallengeUserRewardComplete(bool bWasSuccessful, string UniqueChallengeId, string UniqueUserId, String Error)
QueryChallengefunction QueryChallenge(String ChallengeId)
QueryChallengeListfunction QueryChallengeList(String McpId)
QueryChallengeMultiUserStatusfunction QueryChallengeMultiUserStatus(string UniqueChallengeId, string UniqueUserId, const out array UserIdsToRead, optional int AdditionalParticipantCount, optional bool bWantsParentChildData)
QueryChallengeUserStatusfunction QueryChallengeUserStatus(string UniqueChallengeId, string UniqueUserId, optional bool bWantsParentChildData)
QueryParentChallengefunction QueryParentChallenge(String ChallengeId)
UpdateChallengeUserProgressfunction UpdateChallengeUserProgress(string UniqueChallengeId, string UniqueUserId, String SaveSlotId, bool bDidComplete, int GoalProgress)
UpdateChallengeUserRewardfunction UpdateChallengeUserReward(string UniqueChallengeId, string UniqueUserId, String SaveSlotId, int UserReward)

Inherited

FromMembers
McpServiceBase2 properties, 16 functions
Object13 properties, 308 functions