MCPcopy Create free account
hub / github.com/Crain99/cc-reverse / createProjectSettings

Function createProjectSettings

src/core/projectGenerator.js:147–197  ·  view source on GitHub ↗

* 生成项目设置 * @returns {Object} 项目设置对象

()

Source from the content-addressed store, hash-verified

145 facebook: {
146 appID: '',
147 audience: {
148 enable: false,
149 },
150 enable: false,
151 live: {
152 enable: false,
153 },
154 },
155 'migrate-history': [],
156 'start-scene': 'current',
157 };
158
159 if (global.settings) {
160 const cc = global.settings.CCSettings || global.settings;
161 if (cc.groupList) {
162 settings['group-list'] = cc.groupList;
163 }
164 if (cc.collisionMatrix) {
165 settings['collision-matrix'] = cc.collisionMatrix;
166 }
167 if (cc.launchScene) {
168 settings['start-scene'] = path.basename(cc.launchScene).split('.')[0];
169 }
170 }
171
172 return settings;
173 },
174};
175
176module.exports = { projectGenerator };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected