123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648 |
- /**
- * @module pluginx_protocols
- */
- var plugin = plugin || {};
- /**
- * @class PluginProtocol
- */
- plugin.PluginProtocol = {
- /**
- * @method getPluginName
- * @return {char}
- */
- getPluginName : function (
- )
- {
- return 0;
- },
- /**
- * @method getPluginVersion
- * @return {String}
- */
- getPluginVersion : function (
- )
- {
- return ;
- },
- /**
- * @method getSDKVersion
- * @return {String}
- */
- getSDKVersion : function (
- )
- {
- return ;
- },
- /**
- * @method setDebugMode
- * @param {bool} arg0
- */
- setDebugMode : function (
- bool
- )
- {
- },
- };
- /**
- * @class PluginManager
- */
- plugin.PluginManager = {
- /**
- * @method unloadPlugin
- * @param {char} arg0
- */
- unloadPlugin : function (
- char
- )
- {
- },
- /**
- * @method loadPlugin
- * @param {char} arg0
- * @return {cc.plugin::PluginProtocol}
- */
- loadPlugin : function (
- char
- )
- {
- return cc.plugin::PluginProtocol;
- },
- /**
- * @method end
- */
- end : function (
- )
- {
- },
- /**
- * @method getInstance
- * @return {cc.plugin::PluginManager}
- */
- getInstance : function (
- )
- {
- return cc.plugin::PluginManager;
- },
- };
- /**
- * @class ProtocolAnalytics
- */
- plugin.ProtocolAnalytics = {
- /**
- * @method logTimedEventBegin
- * @param {char} arg0
- */
- logTimedEventBegin : function (
- char
- )
- {
- },
- /**
- * @method logError
- * @param {char} arg0
- * @param {char} arg1
- */
- logError : function (
- char,
- char
- )
- {
- },
- /**
- * @method setCaptureUncaughtException
- * @param {bool} arg0
- */
- setCaptureUncaughtException : function (
- bool
- )
- {
- },
- /**
- * @method setSessionContinueMillis
- * @param {long} arg0
- */
- setSessionContinueMillis : function (
- long
- )
- {
- },
- /**
- * @method logEvent
- * @param {char} arg0
- * @param {map_object} arg1
- */
- logEvent : function (
- char,
- map
- )
- {
- },
- /**
- * @method startSession
- * @param {char} arg0
- */
- startSession : function (
- char
- )
- {
- },
- /**
- * @method stopSession
- */
- stopSession : function (
- )
- {
- },
- /**
- * @method logTimedEventEnd
- * @param {char} arg0
- */
- logTimedEventEnd : function (
- char
- )
- {
- },
- };
- /**
- * @class ProtocolIAP
- */
- plugin.ProtocolIAP = {
- /**
- * @method onPayResult
- * @param {cc.plugin::PayResultCode} arg0
- * @param {char} arg1
- */
- onPayResult : function (
- payresultcode,
- char
- )
- {
- },
- /**
- * @method getCallback
- * @return {function}
- */
- getCallback : function (
- )
- {
- return std::function<void (int, std::basic_string<char> &)>;
- },
- /**
- * @method configDeveloperInfo
- * @param {map_object} arg0
- */
- configDeveloperInfo : function (
- map
- )
- {
- },
- };
- /**
- * @class ProtocolAds
- */
- plugin.ProtocolAds = {
- /**
- * @method showAds
- * @param {map_object} arg0
- * @param {cc.plugin::ProtocolAds::AdsPos} arg1
- */
- showAds : function (
- map,
- adspos
- )
- {
- },
- /**
- * @method hideAds
- * @param {map_object} arg0
- */
- hideAds : function (
- map
- )
- {
- },
- /**
- * @method queryPoints
- */
- queryPoints : function (
- )
- {
- },
- /**
- * @method getCallback
- * @return {function}
- */
- getCallback : function (
- )
- {
- return std::function<void (int, std::basic_string<char> &)>;
- },
- /**
- * @method spendPoints
- * @param {int} arg0
- */
- spendPoints : function (
- int
- )
- {
- },
- /**
- * @method configDeveloperInfo
- * @param {map_object} arg0
- */
- configDeveloperInfo : function (
- map
- )
- {
- },
- };
- /**
- * @class ProtocolShare
- */
- plugin.ProtocolShare = {
- /**
- * @method onShareResult
- * @param {cc.plugin::ShareResultCode} arg0
- * @param {char} arg1
- */
- onShareResult : function (
- shareresultcode,
- char
- )
- {
- },
- /**
- * @method getCallback
- * @return {function}
- */
- getCallback : function (
- )
- {
- return std::function<void (int, std::basic_string<char> &)>;
- },
- /**
- * @method configDeveloperInfo
- * @param {map_object} arg0
- */
- configDeveloperInfo : function (
- map
- )
- {
- },
- };
- /**
- * @class ProtocolSocial
- */
- plugin.ProtocolSocial = {
- /**
- * @method showLeaderboard
- * @param {char} arg0
- */
- showLeaderboard : function (
- char
- )
- {
- },
- /**
- * @method showAchievements
- */
- showAchievements : function (
- )
- {
- },
- /**
- * @method getCallback
- * @return {function}
- */
- getCallback : function (
- )
- {
- return std::function<void (int, std::basic_string<char> &)>;
- },
- /**
- * @method configDeveloperInfo
- * @param {map_object} arg0
- */
- configDeveloperInfo : function (
- map
- )
- {
- },
- };
- /**
- * @class ProtocolUser
- */
- plugin.ProtocolUser = {
- /**
- * @method getCallback
- * @return {function}
- */
- getCallback : function (
- )
- {
- return std::function<void (int, std::basic_string<char> &)>;
- },
- /**
- * @method configDeveloperInfo
- * @param {map_object} arg0
- */
- configDeveloperInfo : function (
- map
- )
- {
- },
- /**
- * @method isLoggedIn
- * @return {bool}
- */
- isLoggedIn : function (
- )
- {
- return false;
- },
- /**
- * @method getSessionID
- * @return {String}
- */
- getSessionID : function (
- )
- {
- return ;
- },
- /**
- * @method getAccessToken
- * @return {String}
- */
- getAccessToken : function (
- )
- {
- return ;
- },
- };
- /**
- * @class AgentManager
- */
- plugin.AgentManager = {
- /**
- * @method getSocialPlugin
- * @return {cc.plugin::ProtocolSocial}
- */
- getSocialPlugin : function (
- )
- {
- return cc.plugin::ProtocolSocial;
- },
- /**
- * @method getAdsPlugin
- * @return {cc.plugin::ProtocolAds}
- */
- getAdsPlugin : function (
- )
- {
- return cc.plugin::ProtocolAds;
- },
- /**
- * @method purge
- */
- purge : function (
- )
- {
- },
- /**
- * @method getUserPlugin
- * @return {cc.plugin::ProtocolUser}
- */
- getUserPlugin : function (
- )
- {
- return cc.plugin::ProtocolUser;
- },
- /**
- * @method getIAPPlugin
- * @return {cc.plugin::ProtocolIAP}
- */
- getIAPPlugin : function (
- )
- {
- return cc.plugin::ProtocolIAP;
- },
- /**
- * @method getSharePlugin
- * @return {cc.plugin::ProtocolShare}
- */
- getSharePlugin : function (
- )
- {
- return cc.plugin::ProtocolShare;
- },
- /**
- * @method getAnalyticsPlugin
- * @return {cc.plugin::ProtocolAnalytics}
- */
- getAnalyticsPlugin : function (
- )
- {
- return cc.plugin::ProtocolAnalytics;
- },
- /**
- * @method destroyInstance
- */
- destroyInstance : function (
- )
- {
- },
- /**
- * @method getInstance
- * @return {cc.plugin::AgentManager}
- */
- getInstance : function (
- )
- {
- return cc.plugin::AgentManager;
- },
- };
- /**
- * @class FacebookAgent
- */
- plugin.FacebookAgent = {
- /**
- * @method activateApp
- */
- activateApp : function (
- )
- {
- },
- /**
- * @method getUserID
- * @return {String}
- */
- getUserID : function (
- )
- {
- return ;
- },
- /**
- * @method logEvent
- * @param {String|String|String|String} str
- * @param {float|map_object|float} float
- * @param {map_object} map
- */
- logEvent : function(
- str,
- float,
- map
- )
- {
- },
- /**
- * @method logout
- */
- logout : function (
- )
- {
- },
- /**
- * @method getSDKVersion
- * @return {String}
- */
- getSDKVersion : function (
- )
- {
- return ;
- },
- /**
- * @method logPurchase
- * @param {float|float} float
- * @param {String|String} str
- * @param {map_object} map
- */
- logPurchase : function(
- float,
- str,
- map
- )
- {
- },
- /**
- * @method isLoggedIn
- * @return {bool}
- */
- isLoggedIn : function (
- )
- {
- return false;
- },
- /**
- * @method canPresentDialogWithParams
- * @param {map_object} arg0
- * @return {bool}
- */
- canPresentDialogWithParams : function (
- map
- )
- {
- return false;
- },
- /**
- * @method getAccessToken
- * @return {String}
- */
- getAccessToken : function (
- )
- {
- return ;
- },
- /**
- * @method destroyInstance
- */
- destroyInstance : function (
- )
- {
- },
- /**
- * @method getInstanceJs
- * @return {cc.plugin::FacebookAgent}
- */
- getInstanceJs : function (
- )
- {
- return cc.plugin::FacebookAgent;
- },
- };
|