AVG.js.map
2.45 KB
{"version":3,"sources":["assets/script/avg/AVG.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,mDAAmD;AAmC1C,4FAnCM,4BAAW,OAmCN;AAlCpB,qEAAkE;AAkChC,8FAlCzB,6BAAa,OAkCyB;AAjC/C,yEAA0F;AAC1F,2EAAoG;AAgCnD,uGAhCxC,sCAAsB,OAgCwC;AAAE,kGAhCxC,iCAAiB,OAgCwC;AA/B1F,yCAAgC;AAChC,8CAA2C;AAC3C,6DAKmC;AAEnC,KAAK,UAAU,cAAc;IACzB,OAAO,eAAG,CAAC,aAAa,EAAE,CAAC;AAC/B,CAAC;AAED,KAAK,UAAU,UAAU,CAAC,MAAc;IACpC,eAAG,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC;AAED,SAAgB,OAAO;IACnB,MAAM,aAAa,GAAY,KAAK,CAAC;IACrC,OAAO,qBAAI,CAAC,uBAAU,CAAC,MAAM,EAAE,EAAE,EAAE;QAC/B,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,uBAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,sBAAsB,EAAtB,sCAAsB,EAAE,sBAAsB,EAAtB,sCAAsB;QAC9F,wBAAwB,EAAxB,wCAAwB,EAAE,wBAAwB,EAAxB,wCAAwB,EAAE,cAAc,EAAE,UAAU;KACjF,CAAC,CAAA;AACN,CAAC;AAND,0BAMC;AAED,IAAI,UAAU,GAAG,2BAAwE,CAAA;AAMnE,gCAAU;AALhC,0EAAwD;AACxD,wEAAsD;AACtD,2EAAyD;AACzD,sEAAoD;AACpD,0EAAwD","file":"","sourceRoot":"/","sourcesContent":["import { init, PlotManager } from \"simba-avg-core\";\nimport { ActionManager } from \"simba-avg-core/dist/ActionManager\";\nimport { GameRecordBase, GameRecordType } from \"simba-avg-core/dist/game-data/GameRecord\";\nimport { richNodesToCocosString, richNodeTextCount } from \"simba-avg-core/dist/utils/RichTextUtils\";\nimport { SDK } from \"simba-sdk\";\nimport { GameConfig } from \"../GameConfig\";\nimport {\n defaultGlobalVariables, defaultRecordVariables,\n globalVariableConstrains, GlobalVariableType,\n\n recordVariableConstrains, RecordVariableType\n} from \"./game-data/GameVariables\";\n\nasync function retrieveRecord() {\n return SDK.getGameRecord();\n}\n\nasync function saveRecord(record: Object) {\n SDK.uploadGameRecord(record);\n}\n\nexport function initAVG() {\n const USE_CDN_PLOTS: boolean = false;\n return init(GameConfig.gameId, \"\", {\n cdnUrl: USE_CDN_PLOTS ? GameConfig.cdnUrl : \"\", defaultGlobalVariables, defaultRecordVariables,\n globalVariableConstrains, recordVariableConstrains, retrieveRecord, saveRecord\n })\n}\n\nlet GameRecord = GameRecordBase as GameRecordType<GlobalVariableType, RecordVariableType>\nexport * from \"simba-avg-core/dist/game-data/PlotsData\";\nexport * from \"simba-avg-core/dist/model/ActionModel\";\nexport * from \"simba-avg-core/dist/model/ConditionModel\";\nexport * from \"simba-avg-core/dist/model/PlotModel\";\nexport * from \"simba-avg-core/dist/model/RichTextModel\";\nexport { PlotManager, GameRecord, ActionManager, richNodesToCocosString, richNodeTextCount };\n"]}