42c85499-9646-4188-ae28-8b03e19af186.js.map
1.38 KB
{"version":3,"sources":["assets/script/game/GameDotMgr.ts"],"names":[],"mappings":";;;;;;AACA,oCAAwC;AACxC,+DAA4D;AAE5D;IAAA,MAAqB,UAAU;QAGpB,MAAM,CAAC,WAAW;YACrB,OAAO,UAAU,CAAC,SAAS,CAAC;QAChC,CAAC;QAEM,KAAK,CAAC,UAAU,CAAC,MAAc;YAClC,IAAI,SAAS,GAAG,iBAAiB,GAAG,MAAM,GAAG,KAAK,GAAG,mCAAgB,CAAC,YAAY,EAAE,CAAC;YACrF,IAAI,UAAU,GAAG,gBAAU,CAAC,eAAe,CAAC,SAAS,CAAW,CAAC;YACjE,IAAI,SAAS,KAAK,UAAU,EAAE;gBAC1B,UAAU,GAAG,CAAC,CAAC;aAClB;YACD,UAAU,IAAI,CAAC,CAAC;YAChB,gBAAU,CAAC,eAAe,CAAC,SAAS,CAAC,GAAG,UAAU,CAAC;YACnD,gBAAU,CAAC,UAAU,EAAE,CAAC;QAC5B,CAAC;;IAfuB,oBAAS,GAAe,IAAI,UAAU,EAAE,CAAC;IAiBrE,iBAAC;KAAA;kBAlBoB,UAAU","file":"","sourceRoot":"/","sourcesContent":["\nimport { GameRecord } from \"../avg/AVG\";\nimport { GameModelManager } from \"./model/GameModelManager\";\n\nexport default class GameDotMgr {\n private static readonly _instance: GameDotMgr = new GameDotMgr();\n\n public static getInstance(): GameDotMgr {\n return GameDotMgr._instance;\n }\n\n public async dotClickUI(uiName: string) {\n let recordKey = \"click_ui_count_\" + uiName + \"_t_\" + GameModelManager.getCurDayStr();\n let clickCount = GameRecord.globalVariables[recordKey] as number;\n if (undefined === clickCount) {\n clickCount = 0;\n }\n clickCount += 1;\n GameRecord.globalVariables[recordKey] = clickCount;\n GameRecord.saveRecord();\n }\n\n}"]}