代码拉取完成,页面将自动刷新
{
"$ref": "#/definitions/Config",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"Config": {
"additionalProperties": false,
"properties": {
"constants": {
"$ref": "#/definitions/IConstantConfig",
"description": "The constants config for engine and user."
},
"features": {
"additionalProperties": {
"$ref": "#/definitions/Feature"
},
"description": "Engine features. Keys are feature IDs.",
"type": "object"
},
"includes": {
"description": "Included files for quick-compiler.",
"items": {
"type": "string"
},
"type": "array"
},
"index": {
"$ref": "#/definitions/IndexConfig",
"description": "Describe how to generate the index module `'cc'`. Currently not used."
},
"moduleOverrides": {
"items": {
"additionalProperties": false,
"properties": {
"isVirtualModule": {
"type": "boolean"
},
"overrides": {
"additionalProperties": {
"type": "string"
},
"description": "Construct a type with a set of properties K of type T",
"type": "object"
},
"test": {
"$ref": "#/definitions/Test"
}
},
"required": [
"test",
"overrides",
"isVirtualModule"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"features",
"includes",
"constants"
],
"type": "object"
},
"Feature": {
"additionalProperties": false,
"description": "An engine feature.",
"properties": {
"intrinsicFlags": {
"additionalProperties": {},
"description": "Flags to set when this feature is enabled.",
"type": "object"
},
"modules": {
"description": "Modules to be included in this feature in their IDs. The ID of a module is its relative path(no extension) under /exports/.",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"modules"
],
"type": "object"
},
"IConstantConfig": {
"additionalProperties": {
"$ref": "#/definitions/IConstantInfo"
},
"type": "object"
},
"IConstantInfo": {
"additionalProperties": false,
"properties": {
"ccGlobal": {
"default": false,
"description": "Whether exported to global as a `CC_XXXX` constant. eg. WECHAT is exported to global.CC_WECHAT NOTE: this is a feature of compatibility with Cocos 2.x engine. Default is false.",
"type": "boolean"
},
"comment": {
"description": "The comment of the constant. Which is used to generate the consts.d.ts file.",
"type": "string"
},
"dynamic": {
"default": false,
"description": "Some constant can't specify the value in the Editor, Preview or Test environment, so we need to dynamically judge them in runtime. These values are specified in a helper called `helper-dynamic-constants.ts`. Default is false.",
"type": "boolean"
},
"internal": {
"description": "Whether exported to developer. If true, it's only exported to engine.",
"type": "boolean"
},
"value": {
"description": "The default value of the constant. It can be a boolean or string. When it's a string type, the value is the result of eval().",
"type": [
"boolean",
"string"
]
}
},
"required": [
"comment",
"value",
"internal"
],
"type": "object"
},
"IndexConfig": {
"additionalProperties": false,
"properties": {
"modules": {
"additionalProperties": {
"additionalProperties": false,
"properties": {
"deprecated": {
"description": "If `true`, accesses the exports of this module from `'cc'` will be marked as deprecated.",
"type": "boolean"
},
"ns": {
"description": "If specified, export contents of the module into a namespace specified by `ns` and then export that namespace into `'cc'`. If not specified, contents of the module will be directly exported into `'cc'`.",
"type": "string"
}
},
"type": "object"
},
"description": "Construct a type with a set of properties K of type T",
"type": "object"
}
},
"type": "object"
},
"Test": {
"type": "string"
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。