mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 03:14:47 +00:00
重置配置表
This commit is contained in:
parent
e8f8cb3ce9
commit
e24dded990
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
DataTables/Datas/战斗/地图.xlsx
Normal file
BIN
DataTables/Datas/战斗/地图.xlsx
Normal file
Binary file not shown.
BIN
DataTables/Datas/战斗/角色/角色战斗素材.xlsx
Normal file
BIN
DataTables/Datas/战斗/角色/角色战斗素材.xlsx
Normal file
Binary file not shown.
BIN
DataTables/Datas/战斗/角色/角色技能.xlsx
Normal file
BIN
DataTables/Datas/战斗/角色/角色技能.xlsx
Normal file
Binary file not shown.
BIN
DataTables/Datas/战斗/角色/角色攻击.xlsx
Normal file
BIN
DataTables/Datas/战斗/角色/角色攻击.xlsx
Normal file
Binary file not shown.
BIN
DataTables/Datas/战斗/角色/角色表.xlsx
Normal file
BIN
DataTables/Datas/战斗/角色/角色表.xlsx
Normal file
Binary file not shown.
9
JisolGameCocos/assets/resources/config/data.meta
Normal file
9
JisolGameCocos/assets/resources/config/data.meta
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "273309e9-d062-41df-9f3c-dc7671bdbc72",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@ -12,64 +12,379 @@
|
||||
|
||||
|
||||
|
||||
export namespace TB {export namespace Battle {export namespace Role {
|
||||
export class GRole {
|
||||
export namespace TB {
|
||||
export class TbGRole {
|
||||
|
||||
constructor(_json_: any) {
|
||||
if (_json_.id === undefined) { throw new Error() }
|
||||
this.id = _json_.id
|
||||
if (_json_.name === undefined) { throw new Error() }
|
||||
this.name = _json_.name
|
||||
if (_json_.price === undefined) { throw new Error() }
|
||||
this.price = _json_.price
|
||||
if(_json_.expire_time != undefined) { this.expireTime = _json_.expire_time } else { this.expireTime = undefined }
|
||||
if (_json_.roleName === undefined) { throw new Error() }
|
||||
this.roleName = _json_.roleName
|
||||
if (_json_.spine === undefined) { throw new Error() }
|
||||
this.spine = _json_.spine
|
||||
if (_json_.roleSkillIds === undefined) { throw new Error() }
|
||||
{ this.roleSkillIds = []; for(let _ele of _json_.roleSkillIds) { let _e; _e = _ele; this.roleSkillIds.push(_e);}}
|
||||
if (_json_.roleAttackRange === undefined) { throw new Error() }
|
||||
this.roleAttackRange = _json_.roleAttackRange
|
||||
}
|
||||
|
||||
/**
|
||||
* 这是id
|
||||
* id
|
||||
*/
|
||||
readonly id: number
|
||||
/**
|
||||
* 名字
|
||||
* 角色名称
|
||||
*/
|
||||
readonly name: string
|
||||
readonly roleName: string
|
||||
/**
|
||||
* 价格
|
||||
* 描述
|
||||
*/
|
||||
readonly price: number
|
||||
readonly spine: string
|
||||
/**
|
||||
* 过期时间
|
||||
* 角色技能Id列表
|
||||
*/
|
||||
readonly expireTime: number|undefined
|
||||
readonly roleSkillIds: number[]
|
||||
/**
|
||||
* 角色攻击范围
|
||||
*/
|
||||
readonly roleAttackRange: number
|
||||
|
||||
resolve(tables:Tables)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
}}}
|
||||
}
|
||||
|
||||
|
||||
export namespace TB {
|
||||
export class TbGMap {
|
||||
|
||||
constructor(_json_: any) {
|
||||
if (_json_.id === undefined) { throw new Error() }
|
||||
this.id = _json_.id
|
||||
if (_json_.mapName === undefined) { throw new Error() }
|
||||
this.mapName = _json_.mapName
|
||||
if (_json_.map1 === undefined) { throw new Error() }
|
||||
this.map1 = _json_.map1
|
||||
if (_json_.map2 === undefined) { throw new Error() }
|
||||
this.map2 = _json_.map2
|
||||
if (_json_.map3 === undefined) { throw new Error() }
|
||||
this.map3 = _json_.map3
|
||||
if (_json_.map1OffsetY === undefined) { throw new Error() }
|
||||
this.map1OffsetY = _json_.map1OffsetY
|
||||
if (_json_.map2OffsetY === undefined) { throw new Error() }
|
||||
this.map2OffsetY = _json_.map2OffsetY
|
||||
if (_json_.map3OffsetY === undefined) { throw new Error() }
|
||||
this.map3OffsetY = _json_.map3OffsetY
|
||||
}
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
readonly id: number
|
||||
/**
|
||||
* 地图名称
|
||||
*/
|
||||
readonly mapName: string
|
||||
/**
|
||||
* 地图1(前)
|
||||
*/
|
||||
readonly map1: string
|
||||
/**
|
||||
* 地图2(后)
|
||||
*/
|
||||
readonly map2: string
|
||||
/**
|
||||
* 地图3(天空)
|
||||
*/
|
||||
readonly map3: string
|
||||
/**
|
||||
* 地图1(前) 偏移量Y
|
||||
*/
|
||||
readonly map1OffsetY: number
|
||||
/**
|
||||
* 地图2(后) 偏移量Y
|
||||
*/
|
||||
readonly map2OffsetY: number
|
||||
/**
|
||||
* 地图2(后) 偏移量Y
|
||||
*/
|
||||
readonly map3OffsetY: number
|
||||
|
||||
resolve(tables:Tables)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
export namespace TB {
|
||||
export class TbGRoleAttack {
|
||||
|
||||
constructor(_json_: any) {
|
||||
if (_json_.id === undefined) { throw new Error() }
|
||||
this.id = _json_.id
|
||||
if (_json_.attackWay === undefined) { throw new Error() }
|
||||
this.attackWay = _json_.attackWay
|
||||
if (_json_.attackArgs === undefined) { throw new Error() }
|
||||
{ this.attackArgs = []; for(let _ele of _json_.attackArgs) { let _e; _e = _ele; this.attackArgs.push(_e);}}
|
||||
}
|
||||
|
||||
/**
|
||||
* 角色Id
|
||||
*/
|
||||
readonly id: number
|
||||
/**
|
||||
* 攻击方式
|
||||
*/
|
||||
readonly attackWay: string
|
||||
/**
|
||||
* 攻击参数
|
||||
*/
|
||||
readonly attackArgs: string[]
|
||||
|
||||
resolve(tables:Tables)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
export namespace TB {
|
||||
export class TbGRoleBattleRes {
|
||||
|
||||
constructor(_json_: any) {
|
||||
if (_json_.id === undefined) { throw new Error() }
|
||||
this.id = _json_.id
|
||||
if (_json_.resName === undefined) { throw new Error() }
|
||||
this.resName = _json_.resName
|
||||
if (_json_.resType === undefined) { throw new Error() }
|
||||
this.resType = _json_.resType
|
||||
if (_json_.resSrc === undefined) { throw new Error() }
|
||||
this.resSrc = _json_.resSrc
|
||||
}
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
readonly id: number
|
||||
/**
|
||||
* 资源名称
|
||||
*/
|
||||
readonly resName: string
|
||||
/**
|
||||
* 资源类型
|
||||
*/
|
||||
readonly resType: string
|
||||
/**
|
||||
* 资源地址
|
||||
*/
|
||||
readonly resSrc: string
|
||||
|
||||
resolve(tables:Tables)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
export namespace TB {
|
||||
export class TbGRoleSkill {
|
||||
|
||||
constructor(_json_: any) {
|
||||
if (_json_.id === undefined) { throw new Error() }
|
||||
this.id = _json_.id
|
||||
if (_json_.skillName === undefined) { throw new Error() }
|
||||
this.skillName = _json_.skillName
|
||||
if (_json_.skillController === undefined) { throw new Error() }
|
||||
this.skillController = _json_.skillController
|
||||
if (_json_.skillArgs === undefined) { throw new Error() }
|
||||
{ this.skillArgs = []; for(let _ele of _json_.skillArgs) { let _e; _e = _ele; this.skillArgs.push(_e);}}
|
||||
if (_json_.skillText === undefined) { throw new Error() }
|
||||
this.skillText = _json_.skillText
|
||||
}
|
||||
|
||||
/**
|
||||
* 角色Id
|
||||
*/
|
||||
readonly id: number
|
||||
/**
|
||||
* 技能名称
|
||||
*/
|
||||
readonly skillName: string
|
||||
/**
|
||||
* 技能控制器
|
||||
*/
|
||||
readonly skillController: string
|
||||
/**
|
||||
* 技能参数
|
||||
*/
|
||||
readonly skillArgs: string[]
|
||||
/**
|
||||
* 技能介绍
|
||||
*/
|
||||
readonly skillText: string
|
||||
|
||||
resolve(tables:Tables)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
export class TbGRole{
|
||||
private _dataMap: Map<number, TB.Battle.Role.GRole>
|
||||
private _dataList: TB.Battle.Role.GRole[]
|
||||
private _dataMap: Map<number, TB.TbGRole>
|
||||
private _dataList: TB.TbGRole[]
|
||||
constructor(_json_: any) {
|
||||
this._dataMap = new Map<number, TB.Battle.Role.GRole>()
|
||||
this._dataMap = new Map<number, TB.TbGRole>()
|
||||
this._dataList = []
|
||||
for(var _json2_ of _json_) {
|
||||
let _v: TB.Battle.Role.GRole
|
||||
_v = new TB.Battle.Role.GRole(_json2_)
|
||||
let _v: TB.TbGRole
|
||||
_v = new TB.TbGRole(_json2_)
|
||||
this._dataList.push(_v)
|
||||
this._dataMap.set(_v.id, _v)
|
||||
}
|
||||
}
|
||||
|
||||
getDataMap(): Map<number, TB.Battle.Role.GRole> { return this._dataMap; }
|
||||
getDataList(): TB.Battle.Role.GRole[] { return this._dataList; }
|
||||
getDataMap(): Map<number, TB.TbGRole> { return this._dataMap; }
|
||||
getDataList(): TB.TbGRole[] { return this._dataList; }
|
||||
|
||||
get(key: number): TB.Battle.Role.GRole | undefined { return this._dataMap.get(key); }
|
||||
get(key: number): TB.TbGRole | undefined { return this._dataMap.get(key); }
|
||||
|
||||
resolve(tables:Tables)
|
||||
{
|
||||
for(let data of this._dataList)
|
||||
{
|
||||
data.resolve(tables)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
export class TbGMap{
|
||||
private _dataMap: Map<number, TB.TbGMap>
|
||||
private _dataList: TB.TbGMap[]
|
||||
constructor(_json_: any) {
|
||||
this._dataMap = new Map<number, TB.TbGMap>()
|
||||
this._dataList = []
|
||||
for(var _json2_ of _json_) {
|
||||
let _v: TB.TbGMap
|
||||
_v = new TB.TbGMap(_json2_)
|
||||
this._dataList.push(_v)
|
||||
this._dataMap.set(_v.id, _v)
|
||||
}
|
||||
}
|
||||
|
||||
getDataMap(): Map<number, TB.TbGMap> { return this._dataMap; }
|
||||
getDataList(): TB.TbGMap[] { return this._dataList; }
|
||||
|
||||
get(key: number): TB.TbGMap | undefined { return this._dataMap.get(key); }
|
||||
|
||||
resolve(tables:Tables)
|
||||
{
|
||||
for(let data of this._dataList)
|
||||
{
|
||||
data.resolve(tables)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
export class TbGRoleAttack{
|
||||
private _dataMap: Map<number, TB.TbGRoleAttack>
|
||||
private _dataList: TB.TbGRoleAttack[]
|
||||
constructor(_json_: any) {
|
||||
this._dataMap = new Map<number, TB.TbGRoleAttack>()
|
||||
this._dataList = []
|
||||
for(var _json2_ of _json_) {
|
||||
let _v: TB.TbGRoleAttack
|
||||
_v = new TB.TbGRoleAttack(_json2_)
|
||||
this._dataList.push(_v)
|
||||
this._dataMap.set(_v.id, _v)
|
||||
}
|
||||
}
|
||||
|
||||
getDataMap(): Map<number, TB.TbGRoleAttack> { return this._dataMap; }
|
||||
getDataList(): TB.TbGRoleAttack[] { return this._dataList; }
|
||||
|
||||
get(key: number): TB.TbGRoleAttack | undefined { return this._dataMap.get(key); }
|
||||
|
||||
resolve(tables:Tables)
|
||||
{
|
||||
for(let data of this._dataList)
|
||||
{
|
||||
data.resolve(tables)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
export class TbGRoleBattleRes{
|
||||
private _dataMap: Map<number, TB.TbGRoleBattleRes>
|
||||
private _dataList: TB.TbGRoleBattleRes[]
|
||||
constructor(_json_: any) {
|
||||
this._dataMap = new Map<number, TB.TbGRoleBattleRes>()
|
||||
this._dataList = []
|
||||
for(var _json2_ of _json_) {
|
||||
let _v: TB.TbGRoleBattleRes
|
||||
_v = new TB.TbGRoleBattleRes(_json2_)
|
||||
this._dataList.push(_v)
|
||||
this._dataMap.set(_v.id, _v)
|
||||
}
|
||||
}
|
||||
|
||||
getDataMap(): Map<number, TB.TbGRoleBattleRes> { return this._dataMap; }
|
||||
getDataList(): TB.TbGRoleBattleRes[] { return this._dataList; }
|
||||
|
||||
get(key: number): TB.TbGRoleBattleRes | undefined { return this._dataMap.get(key); }
|
||||
|
||||
resolve(tables:Tables)
|
||||
{
|
||||
for(let data of this._dataList)
|
||||
{
|
||||
data.resolve(tables)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
export class TbGRoleSkill{
|
||||
private _dataMap: Map<number, TB.TbGRoleSkill>
|
||||
private _dataList: TB.TbGRoleSkill[]
|
||||
constructor(_json_: any) {
|
||||
this._dataMap = new Map<number, TB.TbGRoleSkill>()
|
||||
this._dataList = []
|
||||
for(var _json2_ of _json_) {
|
||||
let _v: TB.TbGRoleSkill
|
||||
_v = new TB.TbGRoleSkill(_json2_)
|
||||
this._dataList.push(_v)
|
||||
this._dataMap.set(_v.id, _v)
|
||||
}
|
||||
}
|
||||
|
||||
getDataMap(): Map<number, TB.TbGRoleSkill> { return this._dataMap; }
|
||||
getDataList(): TB.TbGRoleSkill[] { return this._dataList; }
|
||||
|
||||
get(key: number): TB.TbGRoleSkill | undefined { return this._dataMap.get(key); }
|
||||
|
||||
resolve(tables:Tables)
|
||||
{
|
||||
@ -89,10 +404,26 @@ type JsonLoader = (file: string) => any
|
||||
export class Tables {
|
||||
private _TbGRole: TbGRole
|
||||
get TbGRole(): TbGRole { return this._TbGRole;}
|
||||
private _TbGMap: TbGMap
|
||||
get TbGMap(): TbGMap { return this._TbGMap;}
|
||||
private _TbGRoleAttack: TbGRoleAttack
|
||||
get TbGRoleAttack(): TbGRoleAttack { return this._TbGRoleAttack;}
|
||||
private _TbGRoleBattleRes: TbGRoleBattleRes
|
||||
get TbGRoleBattleRes(): TbGRoleBattleRes { return this._TbGRoleBattleRes;}
|
||||
private _TbGRoleSkill: TbGRoleSkill
|
||||
get TbGRoleSkill(): TbGRoleSkill { return this._TbGRoleSkill;}
|
||||
|
||||
constructor(loader: JsonLoader) {
|
||||
this._TbGRole = new TbGRole(loader('tbgrole'))
|
||||
this._TbGMap = new TbGMap(loader('tbgmap'))
|
||||
this._TbGRoleAttack = new TbGRoleAttack(loader('tbgroleattack'))
|
||||
this._TbGRoleBattleRes = new TbGRoleBattleRes(loader('tbgrolebattleres'))
|
||||
this._TbGRoleSkill = new TbGRoleSkill(loader('tbgroleskill'))
|
||||
|
||||
this._TbGRole.resolve(this)
|
||||
this._TbGMap.resolve(this)
|
||||
this._TbGRoleAttack.resolve(this)
|
||||
this._TbGRoleBattleRes.resolve(this)
|
||||
this._TbGRoleSkill.resolve(this)
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "57cb0026-1494-41ca-948c-346b43746aa7",
|
||||
"uuid": "1c41fdd4-f2b5-4bbf-b81e-2245a40e519e",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
@ -1,12 +0,0 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "372dfc13-f415-4871-98be-49856636b095",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"compressionType": {},
|
||||
"isRemoteBundle": {}
|
||||
}
|
||||
}
|
@ -1 +0,0 @@
|
||||
{"60001":{"id":60001,"mapName":"天空城","map1":"map/MAP6/MAP6_1/spriteFrame","map2":"map/MAP6/MAP6_2/spriteFrame","map3":"map/MAP6/MAP6_3/spriteFrame","map1OffsetY":100,"map2OffsetY":400,"map3OffsetY":400}}
|
@ -1 +0,0 @@
|
||||
{"10001":{"id":10001,"roleName":"小石头","spine":"spine/召唤与合成819个Spine/小石头/guaiA1a/spine/guaiA1a","roleSkillIds":[],"roleAttackRange":100},"10002":{"id":10002,"roleName":"坚强小石","spine":"spine/召唤与合成819个Spine/坚强小石/guaiA1a_1/spine/guaiA1a","roleSkillIds":[],"roleAttackRange":100},"10003":{"id":10003,"roleName":"疯狂松鼠","spine":"spine/召唤与合成819个Spine/疯狂松鼠/guaiA4e_2/spine/guaiA4e","roleSkillIds":[40001],"roleAttackRange":500},"10004":{"id":10004,"roleName":"妙蛙种子","spine":"spine/神奇宝贝/001妙蛙种子/spine/001妙蛙种子","roleSkillIds":[40002],"roleAttackRange":350}}
|
@ -1 +0,0 @@
|
||||
{"10001":{"roleId":10001,"attackWay":"Normal","attackArgs":[]},"10002":{"roleId":10002,"attackWay":"Normal","attackArgs":[]},"10003":{"roleId":10003,"attackWay":"ParabolicBangRemote","attackArgs":["20001","30001","timo5 007","0.6","100","100"]},"10004":{"roleId":10004,"attackWay":"Normal","attackArgs":[]}}
|
@ -1 +0,0 @@
|
||||
{"20001":{"id":20001,"bulletName":"炸弹","bulletSrc":"bullets/疯狂松鼠/attack/spriteFrame"}}
|
@ -1 +0,0 @@
|
||||
{"30001":{"id":30001,"effectName":"爆炸","spine":"effect/爆炸效果/shouji_01/spine/shouji_01","animation":"animation"}}
|
@ -1,11 +0,0 @@
|
||||
{
|
||||
"ver": "2.0.1",
|
||||
"importer": "json",
|
||||
"imported": true,
|
||||
"uuid": "2b1b909f-c98c-40be-8840-601980d86769",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@ -1 +0,0 @@
|
||||
{"40001":{"id":40001,"skillName":"疯狂松鼠","skillController":"GSkillCrazySquirrel","skillArgs":["5","250","250"],"skillText":"疯狂松鼠的技能 丢出巨大炸弹 轰炸全部玩家"},"40002":{"id":40002,"skillName":"妙蛙种子连击","skillController":"GSkillBulbasaurDoubleHit","skillArgs":["8"],"skillText":"妙蛙种子攻击8次 触发一次射叶子技能"}}
|
@ -1,11 +0,0 @@
|
||||
{
|
||||
"ver": "2.0.1",
|
||||
"importer": "json",
|
||||
"imported": true,
|
||||
"uuid": "59d1c66b-278d-4af3-8bb9-864840cfbc5f",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@ -1 +0,0 @@
|
||||
{"50001":{"id":50001,"text":"疯狂松鼠的技能开始 松鼠向天上丢出炸弹","spine":"spine/召唤与合成819个Spine/疯狂松鼠/guaiA4es_2/spine/guaiA4es"},"50002":{"id":50002,"text":"火球","spine":"effect/子弹效果/base_fly_fire/spine/buff_fire"},"50003":{"id":50003,"text":"火球爆炸","spine":"effect/爆炸效果/zhouyu_skill2_2/spine/zhouyu_skill2_2"}}
|
@ -1,11 +0,0 @@
|
||||
{
|
||||
"ver": "2.0.1",
|
||||
"importer": "json",
|
||||
"imported": true,
|
||||
"uuid": "fc22edae-4f33-449d-9525-61c07e4ad229",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@ -1 +0,0 @@
|
||||
{"50001":{"id":50001,"text":"疯狂松鼠的技能开始 松鼠向天上丢出炸弹","spine":"spine/召唤与合成819个Spine/疯狂松鼠/guaiA4es_2/spine/guaiA4es"}}
|
@ -1,11 +0,0 @@
|
||||
{
|
||||
"ver": "2.0.1",
|
||||
"importer": "json",
|
||||
"imported": true,
|
||||
"uuid": "2b4d0d66-c8ee-4b18-996a-bdbd33d4f503",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
9
JisolGameCocos/assets/resources/config/json.meta
Normal file
9
JisolGameCocos/assets/resources/config/json.meta
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "fb208ba4-2f35-427c-bb3a-4090397c970d",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
12
JisolGameCocos/assets/resources/config/json/tbgmap.json
Normal file
12
JisolGameCocos/assets/resources/config/json/tbgmap.json
Normal file
@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"id": 60001,
|
||||
"mapName": "天空城",
|
||||
"map1": "map/MAP6/MAP6_1/spriteFrame",
|
||||
"map2": "map/MAP6/MAP6_2/spriteFrame",
|
||||
"map3": "map/MAP6/MAP6_3/spriteFrame",
|
||||
"map1OffsetY": 100,
|
||||
"map2OffsetY": 400,
|
||||
"map3OffsetY": 400
|
||||
}
|
||||
]
|
@ -2,7 +2,7 @@
|
||||
"ver": "2.0.1",
|
||||
"importer": "json",
|
||||
"imported": true,
|
||||
"uuid": "90a5e164-9bf8-4bcb-b155-444e7ff5e0bc",
|
||||
"uuid": "ca081965-20e1-401b-a6d9-1cec3e644dbb",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
@ -1,54 +1,34 @@
|
||||
[
|
||||
{
|
||||
"id": 10000,
|
||||
"name": "发型",
|
||||
"price": 100
|
||||
},
|
||||
{
|
||||
"id": 10001,
|
||||
"name": "外套",
|
||||
"price": 100
|
||||
"roleName": "小石头",
|
||||
"spine": "spine/召唤与合成819个Spine/小石头/guaiA1a/spine/guaiA1a",
|
||||
"roleSkillIds": [],
|
||||
"roleAttackRange": 100
|
||||
},
|
||||
{
|
||||
"id": 10002,
|
||||
"name": "上衣",
|
||||
"price": 100
|
||||
"roleName": "坚强小石",
|
||||
"spine": "spine/召唤与合成819个Spine/坚强小石/guaiA1a_1/spine/guaiA1a",
|
||||
"roleSkillIds": [],
|
||||
"roleAttackRange": 100
|
||||
},
|
||||
{
|
||||
"id": 10003,
|
||||
"name": "裙子",
|
||||
"price": 100
|
||||
"roleName": "疯狂松鼠",
|
||||
"spine": "spine/召唤与合成819个Spine/疯狂松鼠/guaiA4e_2/spine/guaiA4e",
|
||||
"roleSkillIds": [
|
||||
40001
|
||||
],
|
||||
"roleAttackRange": 500
|
||||
},
|
||||
{
|
||||
"id": 10004,
|
||||
"name": "袜子",
|
||||
"price": 100
|
||||
},
|
||||
{
|
||||
"id": 10005,
|
||||
"name": "鞋子",
|
||||
"price": 100
|
||||
},
|
||||
{
|
||||
"id": 10006,
|
||||
"name": "发饰",
|
||||
"price": 100
|
||||
},
|
||||
{
|
||||
"id": 10007,
|
||||
"name": "中秋节发饰",
|
||||
"price": 200,
|
||||
"expire_time": 1633881599
|
||||
},
|
||||
{
|
||||
"id": 10008,
|
||||
"name": "中秋节鞋子",
|
||||
"price": 300,
|
||||
"expire_time": 1633967999
|
||||
},
|
||||
{
|
||||
"id": 10009,
|
||||
"name": "礼包",
|
||||
"price": 100
|
||||
"roleName": "妙蛙种子",
|
||||
"spine": "spine/神奇宝贝/001妙蛙种子/spine/001妙蛙种子",
|
||||
"roleSkillIds": [
|
||||
40002
|
||||
],
|
||||
"roleAttackRange": 350
|
||||
}
|
||||
]
|
@ -2,7 +2,7 @@
|
||||
"ver": "2.0.1",
|
||||
"importer": "json",
|
||||
"imported": true,
|
||||
"uuid": "9e1a69f7-e3db-4165-abc2-aa96ed577b2d",
|
||||
"uuid": "8783acf4-8ffd-44d0-ac6c-61e76b1867ee",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
@ -0,0 +1,29 @@
|
||||
[
|
||||
{
|
||||
"id": 10001,
|
||||
"attackWay": "Normal",
|
||||
"attackArgs": []
|
||||
},
|
||||
{
|
||||
"id": 10002,
|
||||
"attackWay": "Normal",
|
||||
"attackArgs": []
|
||||
},
|
||||
{
|
||||
"id": 10003,
|
||||
"attackWay": "ParabolicBangRemote",
|
||||
"attackArgs": [
|
||||
"30002",
|
||||
"30001",
|
||||
"timo5 007",
|
||||
"0.6",
|
||||
"100",
|
||||
"100"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 10004,
|
||||
"attackWay": "Normal",
|
||||
"attackArgs": []
|
||||
}
|
||||
]
|
@ -2,7 +2,7 @@
|
||||
"ver": "2.0.1",
|
||||
"importer": "json",
|
||||
"imported": true,
|
||||
"uuid": "75a65c75-47c9-4167-ba79-55548af8cc79",
|
||||
"uuid": "c579484c-c7d1-4fd7-ba57-f93003d57a38",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
@ -0,0 +1,32 @@
|
||||
[
|
||||
{
|
||||
"id": 30001,
|
||||
"resName": "爆炸",
|
||||
"resType": "Spine",
|
||||
"resSrc": "effect/爆炸效果/shouji_01/spine/shouji_01"
|
||||
},
|
||||
{
|
||||
"id": 30002,
|
||||
"resName": "炸弹",
|
||||
"resType": "Sprite",
|
||||
"resSrc": "bullets/疯狂松鼠/attack/spriteFrame"
|
||||
},
|
||||
{
|
||||
"id": 30003,
|
||||
"resName": "疯狂松鼠的技能开始 松鼠向天上丢出炸弹",
|
||||
"resType": "Spine",
|
||||
"resSrc": "spine/召唤与合成819个Spine/疯狂松鼠/guaiA4es_2/spine/guaiA4es"
|
||||
},
|
||||
{
|
||||
"id": 30004,
|
||||
"resName": "火球",
|
||||
"resType": "Spine",
|
||||
"resSrc": "effect/子弹效果/base_fly_fire/spine/buff_fire"
|
||||
},
|
||||
{
|
||||
"id": 30005,
|
||||
"resName": "火球爆炸",
|
||||
"resType": "Spine",
|
||||
"resSrc": "effect/爆炸效果/zhouyu_skill2_2/spine/zhouyu_skill2_2"
|
||||
}
|
||||
]
|
@ -2,7 +2,7 @@
|
||||
"ver": "2.0.1",
|
||||
"importer": "json",
|
||||
"imported": true,
|
||||
"uuid": "d0ea1d51-329d-4f0e-83cf-33182eaa13f0",
|
||||
"uuid": "95a40bf9-994f-4f8c-bd5e-f8bc347becf3",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
@ -0,0 +1,22 @@
|
||||
[
|
||||
{
|
||||
"id": 40001,
|
||||
"skillName": "疯狂松鼠",
|
||||
"skillController": "GSkillCrazySquirrel",
|
||||
"skillArgs": [
|
||||
"5",
|
||||
"250",
|
||||
"250"
|
||||
],
|
||||
"skillText": "疯狂松鼠的技能 丢出巨大炸弹 轰炸全部玩家"
|
||||
},
|
||||
{
|
||||
"id": 40002,
|
||||
"skillName": "妙蛙种子连击",
|
||||
"skillController": "GSkillBulbasaurDoubleHit",
|
||||
"skillArgs": [
|
||||
"8"
|
||||
],
|
||||
"skillText": "妙蛙种子攻击8次 触发一次射叶子技能"
|
||||
}
|
||||
]
|
@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "2.0.1",
|
||||
"importer": "json",
|
||||
"imported": true,
|
||||
"uuid": "1c448338-21ce-44ac-90b9-bd0b911896bc",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "7dcc424e-cdd8-4b28-ae0a-1a7994590b3a",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"compressionType": {},
|
||||
"isRemoteBundle": {}
|
||||
}
|
||||
}
|
@ -1,55 +0,0 @@
|
||||
import { JsonUtil } from "../../../../extensions/ngame/assets/ngame/util/JsonUtil";
|
||||
|
||||
export class TableGMap {
|
||||
static TableName: string = "GMap";
|
||||
|
||||
static getAllConfig(): { [id: string]: TableGMap } {
|
||||
return JsonUtil.get(TableGMap.TableName);
|
||||
}
|
||||
|
||||
static getConfig(id: number | string) {
|
||||
return TableGMap.getAllConfig()[id] as TableGMap;
|
||||
}
|
||||
|
||||
private data: any;
|
||||
|
||||
init(id: number) {
|
||||
var table = JsonUtil.get(TableGMap.TableName);
|
||||
this.data = table[id];
|
||||
this._id = id;
|
||||
}
|
||||
/** id */
private _id: number = 0;
|
||||
|
||||
/** id */
|
||||
get id(): number {
|
||||
return this.data.id;
|
||||
}
|
||||
/** 地图名称 */
|
||||
get mapName(): string {
|
||||
return this.data.mapName;
|
||||
}
|
||||
/** 地图1(前) */
|
||||
get map1(): string {
|
||||
return this.data.map1;
|
||||
}
|
||||
/** 地图2(后) */
|
||||
get map2(): string {
|
||||
return this.data.map2;
|
||||
}
|
||||
/** 地图3(天空) */
|
||||
get map3(): string {
|
||||
return this.data.map3;
|
||||
}
|
||||
/** 地图1(前) 偏移量Y */
|
||||
get map1OffsetY(): number {
|
||||
return this.data.map1OffsetY;
|
||||
}
|
||||
/** 地图2(后) 偏移量Y */
|
||||
get map2OffsetY(): number {
|
||||
return this.data.map2OffsetY;
|
||||
}
|
||||
/** 地图2(后) 偏移量Y */
|
||||
get map3OffsetY(): number {
|
||||
return this.data.map3OffsetY;
|
||||
}
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
import { JsonUtil } from "../../../../extensions/ngame/assets/ngame/util/JsonUtil";
|
||||
|
||||
export class TableGRole {
|
||||
static TableName: string = "GRole";
|
||||
|
||||
static getAllConfig(): { [id: string]: TableGRole } {
|
||||
return JsonUtil.get(TableGRole.TableName);
|
||||
}
|
||||
|
||||
static getConfig(id: number | string) {
|
||||
return TableGRole.getAllConfig()[id] as TableGRole;
|
||||
}
|
||||
|
||||
private data: any;
|
||||
|
||||
init(id: number) {
|
||||
var table = JsonUtil.get(TableGRole.TableName);
|
||||
this.data = table[id];
|
||||
this._id = id;
|
||||
}
|
||||
/** id */
private _id: number = 0;
|
||||
|
||||
/** id */
|
||||
get id(): number {
|
||||
return this.data.id;
|
||||
}
|
||||
/** 角色名称 */
|
||||
get roleName(): string {
|
||||
return this.data.roleName;
|
||||
}
|
||||
/** Spine地址 */
|
||||
get spine(): string {
|
||||
return this.data.spine;
|
||||
}
|
||||
/** 角色技能Id列表 */
|
||||
get roleSkillIds(): number[] {
|
||||
return this.data.roleSkillIds;
|
||||
}
|
||||
/** 角色攻击范围 */
|
||||
get roleAttackRange(): number {
|
||||
return this.data.roleAttackRange;
|
||||
}
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "9038eb60-394b-4c67-a5cc-ebd05040f85c",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@ -1,35 +0,0 @@
|
||||
import { JsonUtil } from "../../../../extensions/ngame/assets/ngame/util/JsonUtil";
|
||||
|
||||
export class TableGRoleAttack {
|
||||
static TableName: string = "GRoleAttack";
|
||||
|
||||
static getAllConfig(): { [id: string]: TableGRoleAttack } {
|
||||
return JsonUtil.get(TableGRoleAttack.TableName);
|
||||
}
|
||||
|
||||
static getConfig(id: number | string) {
|
||||
return TableGRoleAttack.getAllConfig()[id] as TableGRoleAttack;
|
||||
}
|
||||
|
||||
private data: any;
|
||||
|
||||
init(roleId: number) {
|
||||
var table = JsonUtil.get(TableGRoleAttack.TableName);
|
||||
this.data = table[roleId];
|
||||
this._roleId = roleId;
|
||||
}
|
||||
/** 角色Id */
private _roleId: number = 0;
|
||||
|
||||
/** 角色Id */
|
||||
get roleId(): number {
|
||||
return this.data.roleId;
|
||||
}
|
||||
/** 攻击方式 */
|
||||
get attackWay(): string {
|
||||
return this.data.attackWay;
|
||||
}
|
||||
/** 攻击参数 */
|
||||
get attackArgs(): string[] {
|
||||
return this.data.attackArgs;
|
||||
}
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "4879e3d4-3b08-4e70-af99-add884d50af3",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@ -1,35 +0,0 @@
|
||||
import { JsonUtil } from "../../../../extensions/ngame/assets/ngame/util/JsonUtil";
|
||||
|
||||
export class TableGRoleAttackBullet {
|
||||
static TableName: string = "GRoleAttackBullet";
|
||||
|
||||
static getAllConfig(): { [id: string]: TableGRoleAttackBullet } {
|
||||
return JsonUtil.get(TableGRoleAttackBullet.TableName);
|
||||
}
|
||||
|
||||
static getConfig(id: number | string) {
|
||||
return TableGRoleAttackBullet.getAllConfig()[id] as TableGRoleAttackBullet;
|
||||
}
|
||||
|
||||
private data: any;
|
||||
|
||||
init(id: number) {
|
||||
var table = JsonUtil.get(TableGRoleAttackBullet.TableName);
|
||||
this.data = table[id];
|
||||
this._id = id;
|
||||
}
|
||||
/** Id */
private _id: number = 0;
|
||||
|
||||
/** Id */
|
||||
get id(): number {
|
||||
return this.data.id;
|
||||
}
|
||||
/** 子弹名称 */
|
||||
get bulletName(): string {
|
||||
return this.data.bulletName;
|
||||
}
|
||||
/** 子弹地址 */
|
||||
get bulletSrc(): string {
|
||||
return this.data.bulletSrc;
|
||||
}
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "0c4a411b-9551-4944-9662-79468f748d6e",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
import { JsonUtil } from "../../../../extensions/ngame/assets/ngame/util/JsonUtil";
|
||||
|
||||
export class TableGRoleAttackEffect {
|
||||
static TableName: string = "GRoleAttackEffect";
|
||||
|
||||
static getAllConfig(): { [id: string]: TableGRoleAttackEffect } {
|
||||
return JsonUtil.get(TableGRoleAttackEffect.TableName);
|
||||
}
|
||||
|
||||
static getConfig(id: number | string) {
|
||||
return TableGRoleAttackEffect.getAllConfig()[id] as TableGRoleAttackEffect;
|
||||
}
|
||||
|
||||
private data: any;
|
||||
|
||||
init(id: number) {
|
||||
var table = JsonUtil.get(TableGRoleAttackEffect.TableName);
|
||||
this.data = table[id];
|
||||
this._id = id;
|
||||
}
|
||||
/** Id */
private _id: number = 0;
|
||||
|
||||
/** Id */
|
||||
get id(): number {
|
||||
return this.data.id;
|
||||
}
|
||||
/** 效果名称 */
|
||||
get effectName(): string {
|
||||
return this.data.effectName;
|
||||
}
|
||||
/** spine路径 */
|
||||
get spine(): string {
|
||||
return this.data.spine;
|
||||
}
|
||||
/** 动画名称 */
|
||||
get animation(): string {
|
||||
return this.data.animation;
|
||||
}
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "b03efae0-b212-4eb7-8462-2292e6884b51",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
import { JsonUtil } from "../../../../extensions/ngame/assets/ngame/util/JsonUtil";
|
||||
|
||||
export class TableGRoleSkill {
|
||||
static TableName: string = "GRoleSkill";
|
||||
|
||||
static getAllConfig(): { [id: string]: TableGRoleSkill } {
|
||||
return JsonUtil.get(TableGRoleSkill.TableName);
|
||||
}
|
||||
|
||||
static getConfig(id: number | string) {
|
||||
return TableGRoleSkill.getAllConfig()[id] as TableGRoleSkill;
|
||||
}
|
||||
|
||||
private data: any;
|
||||
|
||||
init(id: number) {
|
||||
var table = JsonUtil.get(TableGRoleSkill.TableName);
|
||||
this.data = table[id];
|
||||
this._id = id;
|
||||
}
|
||||
/** 技能Id */
private _id: number = 0;
|
||||
|
||||
/** 技能Id */
|
||||
get id(): number {
|
||||
return this.data.id;
|
||||
}
|
||||
/** 技能名称 */
|
||||
get skillName(): string {
|
||||
return this.data.skillName;
|
||||
}
|
||||
/** 技能控制器 */
|
||||
get skillController(): string {
|
||||
return this.data.skillController;
|
||||
}
|
||||
/** 技能参数 */
|
||||
get skillArgs(): string[] {
|
||||
return this.data.skillArgs;
|
||||
}
|
||||
/** 技能介绍 */
|
||||
get skillText(): string {
|
||||
return this.data.skillText;
|
||||
}
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "44fbcae1-8514-43b3-8a90-3e68b3f84497",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@ -1,35 +0,0 @@
|
||||
import { JsonUtil } from "../../../../extensions/ngame/assets/ngame/util/JsonUtil";
|
||||
|
||||
export class TableGRoleSkillEffect {
|
||||
static TableName: string = "GRoleSkillEffect";
|
||||
|
||||
static getAllConfig(): { [id: string]: TableGRoleSkillEffect } {
|
||||
return JsonUtil.get(TableGRoleSkillEffect.TableName);
|
||||
}
|
||||
|
||||
static getConfig(id: number | string) {
|
||||
return TableGRoleSkillEffect.getAllConfig()[id] as TableGRoleSkillEffect;
|
||||
}
|
||||
|
||||
private data: any;
|
||||
|
||||
init(id: number) {
|
||||
var table = JsonUtil.get(TableGRoleSkillEffect.TableName);
|
||||
this.data = table[id];
|
||||
this._id = id;
|
||||
}
|
||||
/** 技能SpineId */
private _id: number = 0;
|
||||
|
||||
/** 技能SpineId */
|
||||
get id(): number {
|
||||
return this.data.id;
|
||||
}
|
||||
/** 说明 */
|
||||
get text(): string {
|
||||
return this.data.text;
|
||||
}
|
||||
/** spine路径 */
|
||||
get spine(): string {
|
||||
return this.data.spine;
|
||||
}
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "2b4ecb72-b2fb-43c5-8712-3eb6b4c4abe9",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@ -1,35 +0,0 @@
|
||||
import { JsonUtil } from "../../../../extensions/ngame/assets/ngame/util/JsonUtil";
|
||||
|
||||
export class TableGRoleSkillSpine {
|
||||
static TableName: string = "GRoleSkillSpine";
|
||||
|
||||
static getAllConfig(): { [id: string]: TableGRoleSkillSpine } {
|
||||
return JsonUtil.get(TableGRoleSkillSpine.TableName);
|
||||
}
|
||||
|
||||
static getConfig(id: number | string) {
|
||||
return TableGRoleSkillSpine.getAllConfig()[id] as TableGRoleSkillSpine;
|
||||
}
|
||||
|
||||
private data: any;
|
||||
|
||||
init(id: number) {
|
||||
var table = JsonUtil.get(TableGRoleSkillSpine.TableName);
|
||||
this.data = table[id];
|
||||
this._id = id;
|
||||
}
|
||||
/** 技能SpineId */
private _id: number = 0;
|
||||
|
||||
/** 技能SpineId */
|
||||
get id(): number {
|
||||
return this.data.id;
|
||||
}
|
||||
/** 说明 */
|
||||
get text(): string {
|
||||
return this.data.text;
|
||||
}
|
||||
/** spine路径 */
|
||||
get spine(): string {
|
||||
return this.data.spine;
|
||||
}
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "19c80511-21b9-4037-b717-48720ff61578",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@ -16,16 +16,11 @@ import axios from "../../extensions/ngame/assets/plugins/axios.js";
|
||||
import GBattleModeManager from "./battle/GBattleModeManager";
|
||||
import { GLayer, UIConfig } from "./ui/UIConfig";
|
||||
import JLoaderSystem from "../../extensions/ngame/assets/ngame/system/JLoaderSystem";
|
||||
import { TableGRole } from "../resources/config/ts/TableGRole";
|
||||
import { sp } from "cc";
|
||||
import { TableGRoleAttack } from "../resources/config/ts/TableGRoleAttack";
|
||||
import { SpriteFrame } from "cc";
|
||||
import { TableGRoleAttackBullet } from "../resources/config/ts/TableGRoleAttackBullet";
|
||||
import { TableGRoleAttackEffect } from "../resources/config/ts/TableGRoleAttackEffect";
|
||||
import { TableGRoleSkill } from "../resources/config/ts/TableGRoleSkill";
|
||||
import { TableGRoleSkillEffect } from "../resources/config/ts/TableGRoleSkillEffect";
|
||||
import { TableGMap } from "../resources/config/ts/TableGMap";
|
||||
import Loading from "../../extensions/ngame/assets/ngame/util/Loading";
|
||||
import { TB, Tables } from "../resources/config/data/schema";
|
||||
import { JsonAsset } from "cc";
|
||||
|
||||
let IP = "kyu.jisol.cn";
|
||||
|
||||
@ -104,37 +99,33 @@ export abstract class JNGSyncProtoBase<T> extends JNSyncFrameProtoComponent<T>{
|
||||
|
||||
}
|
||||
|
||||
export var TD:Tables = null;
|
||||
//读写config
|
||||
export class JNGConfig extends SystemBase{
|
||||
|
||||
static loading = "JNGConfig";
|
||||
|
||||
//配置JSON加载
|
||||
jsons:JsonLoad[] = [
|
||||
{name:TableGRole.TableName}, //角色
|
||||
{name:TableGRoleAttack.TableName}, //角色攻击
|
||||
{name:TableGRoleAttackBullet.TableName}, //角色攻击子弹
|
||||
{name:TableGRoleAttackEffect.TableName}, //角色攻击特效
|
||||
{name:TableGRoleSkill.TableName}, //角色技能
|
||||
{name:TableGRoleSkillEffect.TableName}, //角色技能特效
|
||||
{name:TableGMap.TableName}, //游戏地图
|
||||
].map((table) => {
|
||||
return {
|
||||
name:table.name,
|
||||
bundle:"resources",
|
||||
path:"config/game/"
|
||||
}
|
||||
});
|
||||
|
||||
async onInit(): Promise<any> {
|
||||
|
||||
app.loading.setCurrent(JNGConfig.loading);
|
||||
|
||||
for (const key in this.jsons) {
|
||||
const load = this.jsons[key];
|
||||
let json2 = resources.getDirWithPath("config/json/",JsonAsset).map((info) => {
|
||||
let args = info.path.split("/");
|
||||
return {
|
||||
name:args[args.length - 1],
|
||||
bundle:"resources",
|
||||
path:"config/json/"
|
||||
}
|
||||
})
|
||||
|
||||
for (const key in json2) {
|
||||
const load = json2[key];
|
||||
await JsonUtil.load(load);
|
||||
}
|
||||
|
||||
TD = new Tables((file) => JsonUtil.get(file))
|
||||
console.log(TD);
|
||||
|
||||
app.loading.ok(JNGConfig.loading);
|
||||
}
|
||||
|
||||
@ -146,10 +137,11 @@ export class JLoaderBattle extends JLoaderSystem{
|
||||
static loading = "JLoaderBattle";
|
||||
static loadingInit = "JLoaderBattle_Init";
|
||||
|
||||
skData:{[id:number]:sp.SkeletonData} = {}; //角色Spine
|
||||
bullets:{[id:number]:SpriteFrame} = {}; //子弹
|
||||
effects:{[id:number]:sp.SkeletonData} = {}; //Spine特效
|
||||
maps:{[id:number]:SpriteFrame[]} = {}; //地图
|
||||
roleSpine:{[id:number]:sp.SkeletonData} = {}; //角色Spine
|
||||
roleResImage:{[id:number]:SpriteFrame} = {}; //角色战斗素材图片
|
||||
roleResSpine:{[id:number]:sp.SkeletonData} = {}; //角色战斗素材Spine
|
||||
effects:{[id:number]:sp.SkeletonData} = {}; //Spine特效
|
||||
maps:{[id:number]:SpriteFrame[]} = {}; //地图
|
||||
|
||||
async onInit(): Promise<any> {
|
||||
|
||||
@ -162,43 +154,33 @@ export class JLoaderBattle extends JLoaderSystem{
|
||||
app.loading.setCurrent(JLoaderBattle.loadingInit);
|
||||
|
||||
//将配置表的角色都读取出来
|
||||
for (const info of Object.values(TableGRole.getAllConfig())) {
|
||||
this.skData[info.id] = await (new Promise(r => {
|
||||
for (const info of TD.TbGRole.getDataMap().values()) {
|
||||
this.roleSpine[info.id] = await (new Promise(r => {
|
||||
this.bundle.load(info.spine,sp.SkeletonData,(err,data) => {
|
||||
r(data);
|
||||
})
|
||||
}))
|
||||
}
|
||||
|
||||
//将所有子弹读取出来
|
||||
for (const info of Object.values(TableGRoleAttackBullet.getAllConfig())) {
|
||||
this.bullets[info.id] = await (new Promise(r => {
|
||||
this.bundle.load(info.bulletSrc,SpriteFrame,(err,data) => {
|
||||
r(data);
|
||||
})
|
||||
}))
|
||||
}
|
||||
|
||||
//攻击特效读取
|
||||
for (const info of Object.values(TableGRoleAttackEffect.getAllConfig())) {
|
||||
this.effects[info.id] = await (new Promise(r => {
|
||||
this.bundle.load(info.spine,sp.SkeletonData,(err,data) => {
|
||||
r(data);
|
||||
})
|
||||
}))
|
||||
}
|
||||
|
||||
//技能特效读取
|
||||
for (const info of Object.values(TableGRoleSkillEffect.getAllConfig())) {
|
||||
this.effects[info.id] = await (new Promise(r => {
|
||||
this.bundle.load(info.spine,sp.SkeletonData,(err,data) => {
|
||||
r(data);
|
||||
})
|
||||
}))
|
||||
//读取角色战斗素材
|
||||
for(const info of TD.TbGRoleBattleRes.getDataMap().values()){
|
||||
if(info.resType == "Spine"){
|
||||
this.roleResSpine[info.id] = await (new Promise(r => {
|
||||
this.bundle.load(info.resSrc,sp.SkeletonData,(err,data) => {
|
||||
r(data);
|
||||
})
|
||||
}))
|
||||
}else{
|
||||
this.roleResImage[info.id] = await (new Promise(r => {
|
||||
this.bundle.load(info.resSrc,SpriteFrame,(err,data) => {
|
||||
r(data);
|
||||
})
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
||||
//读取地图
|
||||
for (const info of Object.values(TableGMap.getAllConfig())) {
|
||||
for (const info of TD.TbGMap.getDataMap().values()) {
|
||||
|
||||
this.maps[info.id] = await (Promise.all(["1","2","3"].map(index => `map${index}`).map(key => {
|
||||
return new Promise<SpriteFrame>(r => {
|
||||
@ -234,5 +216,5 @@ export const app = {
|
||||
[JNGConfig.loading]:{title:"加载配置文件"},
|
||||
[JLoaderBattle.loading]:{title:"加载战斗资源"},
|
||||
[JLoaderBattle.loadingInit]:{title:"初始化战斗资源"},
|
||||
})
|
||||
}),
|
||||
}
|
@ -2,7 +2,6 @@ import { _decorator, Component, director, instantiate, Node, Prefab } from 'cc';
|
||||
import { app } from './App';
|
||||
import { JNGame } from '../../extensions/ngame/assets/ngame/JNGame';
|
||||
import { JNSyncAction } from '../../extensions/ngame/assets/ngame/sync/JNSyncAction';
|
||||
import { TableGRole } from '../resources/config/ts/TableGRole';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass('Main')
|
||||
@ -24,13 +23,11 @@ export class Main extends Component {
|
||||
{path:"proto/GDemo"}
|
||||
]);
|
||||
|
||||
console.log("TableGRole",TableGRole.getAllConfig())
|
||||
|
||||
//发生帧同步开始
|
||||
app.socket.Send(JNSyncAction.NSyncFrameStart);
|
||||
|
||||
// 创建世界
|
||||
// director.getScene().addChild(instantiate(this.WorldPrefab));
|
||||
director.getScene().addChild(instantiate(this.WorldPrefab));
|
||||
|
||||
}
|
||||
|
||||
|
@ -1,14 +1,10 @@
|
||||
import { Node } from "cc";
|
||||
import { TableGRoleAttack } from "../../../../resources/config/ts/TableGRoleAttack";
|
||||
import GRoleBase from "../role/GRoleBase";
|
||||
import GAttackNormal from "./GAttackNormal";
|
||||
import GAttackParabolicBangRemote from "./GAttackParabolicBangRemote";
|
||||
import { UITransform } from "cc";
|
||||
import GButtleBase from "../bullet/GButtleBase";
|
||||
import { GFSMAnimBase } from "../fsm/GFSMAnimBase";
|
||||
import GFSMBase from "../fsm/GFSMBase";
|
||||
import GRoleDefault from "../role/GRoleDefault";
|
||||
import GNode from "../common/GNode";
|
||||
import { TB } from "../../../../resources/config/data/schema";
|
||||
|
||||
//攻击子弹类
|
||||
export class GAttackBullet{
|
||||
@ -26,7 +22,7 @@ export class GAttackBullet{
|
||||
|
||||
//攻击方式基类
|
||||
export interface GAttackBase{
|
||||
attack(role:GRoleDefault,info:TableGRoleAttack);
|
||||
attack(role:GRoleDefault,info:TB.TbGRoleAttack);
|
||||
}
|
||||
|
||||
//攻击方式
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { TableGRoleAttack } from "../../../../resources/config/ts/TableGRoleAttack";
|
||||
import { TB } from "../../../../resources/config/data/schema";
|
||||
import GRoleDefault from "../role/GRoleDefault";
|
||||
import { GAttackBase } from "./GAttack";
|
||||
|
||||
@ -6,7 +6,7 @@ import { GAttackBase } from "./GAttack";
|
||||
//普通攻击
|
||||
export default class GAttackNormal implements GAttackBase{
|
||||
|
||||
attack(role: GRoleDefault, info: TableGRoleAttack) {
|
||||
attack(role: GRoleDefault, info: TB.TbGRoleAttack) {
|
||||
role.fsm.enemy.onHit();
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { SpriteFrame } from "cc";
|
||||
import { TableGRoleAttack } from "../../../../resources/config/ts/TableGRoleAttack";
|
||||
import { app } from "../../../App";
|
||||
import { TD, app } from "../../../App";
|
||||
import GRoleBase from "../role/GRoleBase";
|
||||
import { GAttackBase, GAttackBullet } from "./GAttack";
|
||||
import GButtleDefault from "../bullet/GButtleDefault";
|
||||
@ -9,10 +8,10 @@ import { bezier } from "cc";
|
||||
import { v2 } from "cc";
|
||||
import { Vec2 } from "cc";
|
||||
import GEffectUtil from "../common/GEffectUtil";
|
||||
import { TableGRoleAttackEffect } from "../../../../resources/config/ts/TableGRoleAttackEffect";
|
||||
import GDetection from "../common/GDetection";
|
||||
import { rect } from "cc";
|
||||
import GRoleDefault from "../role/GRoleDefault";
|
||||
import { TB } from "../../../../resources/config/data/schema";
|
||||
|
||||
/**
|
||||
* 抛物线 爆炸普攻
|
||||
@ -20,15 +19,15 @@ import GRoleDefault from "../role/GRoleDefault";
|
||||
*/
|
||||
export default class GAttackParabolicRemote implements GAttackBase{
|
||||
|
||||
attack(role: GRoleDefault, info: TableGRoleAttack): void {
|
||||
attack(role: GRoleDefault, info: TB.TbGRoleAttack): void {
|
||||
|
||||
let enemy = role.fsm.enemy;
|
||||
if(!enemy) return;
|
||||
|
||||
let image:SpriteFrame = app.battleRes.bullets[info.attackArgs[0]];
|
||||
let image:SpriteFrame = app.battleRes.roleResImage[info.attackArgs[0]];
|
||||
let bang = {
|
||||
ske: app.battleRes.effects[info.attackArgs[1]],
|
||||
info: TableGRoleAttackEffect.getConfig(info.attackArgs[1])
|
||||
ske: app.battleRes.roleResSpine[info.attackArgs[1]],
|
||||
info: TD.TbGRoleBattleRes.get(parseInt(info.attackArgs[1]))
|
||||
};
|
||||
let bone = role.spine.findBone(info.attackArgs[2]);
|
||||
let scale:number = parseFloat(info.attackArgs[3]);
|
||||
@ -73,7 +72,7 @@ export default class GAttackParabolicRemote implements GAttackBase{
|
||||
let effect = GEffectUtil.createOne(bang.ske);
|
||||
role.mode.addGNode(effect.node,bullet.node.worldPosition);
|
||||
//获取默认动画
|
||||
effect.setAnimation(0,bang.info.animation,false);
|
||||
effect.setAnimation(0,"animation",false);
|
||||
//销毁
|
||||
bullet.node.destroy();
|
||||
|
||||
|
@ -1,11 +1,9 @@
|
||||
import { _decorator, Component, Node } from 'cc';
|
||||
import { app, JNGSyncBase } from '../../../../App';
|
||||
import { SpriteFrame } from 'cc';
|
||||
import { TableGMap } from '../../../../../resources/config/ts/TableGMap';
|
||||
import { Sprite } from 'cc';
|
||||
import { UITransform } from 'cc';
|
||||
import { v3 } from 'cc';
|
||||
import { Vec2 } from 'cc';
|
||||
import { size } from 'cc';
|
||||
import GNode from '../GNode';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
@ -3,13 +3,11 @@ import GObject, { GTowards } from "../GObject";
|
||||
import { JNFrameInfo } from "../../../../../extensions/ngame/assets/ngame/sync/frame/JNSyncFrame";
|
||||
import { Vec2 } from "cc";
|
||||
import { v3 } from "cc";
|
||||
import { TableGRole } from "../../../../resources/config/ts/TableGRole";
|
||||
import { TableGRoleSkill } from "../../../../resources/config/ts/TableGRoleSkill";
|
||||
import { GSkill, GSkillBase, GSkillState } from "../../skill/GSkill";
|
||||
import JNSkeleton from "../../../../../extensions/ngame/assets/ngame/sync/frame/game/spine/JNFrameSkeleton";
|
||||
import { GFSMAnimBase } from "../fsm/GFSMAnimBase";
|
||||
import GFSMBase from "../fsm/GFSMBase";
|
||||
import { app } from "../../../App";
|
||||
import { TB } from "../../../../resources/config/data/schema";
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
export enum GRoleAnimEvent{
|
||||
@ -23,7 +21,7 @@ export default abstract class GRoleBase<T> extends GObject<T>{
|
||||
spine:JNSkeleton;
|
||||
|
||||
//角色
|
||||
role:TableGRole;
|
||||
role:TB.TbGRole;
|
||||
|
||||
//状态机
|
||||
fsm:GFSMBase;
|
||||
@ -80,9 +78,9 @@ export default abstract class GRoleBase<T> extends GObject<T>{
|
||||
}
|
||||
|
||||
//初始化
|
||||
protected init(role:TableGRole){
|
||||
protected init(role:TB.TbGRole){
|
||||
if(this.spine)
|
||||
this.spine.skeletonData = app.battleRes.skData[role.id];
|
||||
this.spine.skeletonData = app.battleRes.roleSpine[role.id];
|
||||
}
|
||||
|
||||
//创建一个状态机
|
||||
|
@ -2,19 +2,18 @@ import { _decorator } from "cc";
|
||||
import GRoleBase, { GRoleAnimEvent } from "./GRoleBase";
|
||||
import { ProgressBar } from "cc";
|
||||
import { JNFrameInfo } from "../../../../../extensions/ngame/assets/ngame/sync/frame/JNSyncFrame";
|
||||
import { TableGRole } from "../../../../resources/config/ts/TableGRole";
|
||||
import { GFSMAnimBase, GFSMBattleAminEnum } from "../fsm/GFSMAnimBase";
|
||||
import { GFSMDefaultAnim } from "../fsm/Default/GFSMDefaultAnim";
|
||||
import GFSMDefault from "../fsm/Default/GFSMDefault";
|
||||
import { JEasing } from "../../../../../extensions/ngame/assets/ngame/sync/frame/game/tween/JNFrameTween";
|
||||
import { TableGRoleAttack } from "../../../../resources/config/ts/TableGRoleAttack";
|
||||
import { GAttack } from "../attack/GAttack";
|
||||
import { v2 } from "cc";
|
||||
import { GTactical } from "../../entity/GTactical";
|
||||
import { Vec2 } from "cc";
|
||||
import { GSkill, GSkillBase, GSkillState } from "../../skill/GSkill";
|
||||
import { TableGRoleSkill } from "../../../../resources/config/ts/TableGRoleSkill";
|
||||
import JNFrameTime from "../../../../../extensions/ngame/assets/ngame/sync/frame/game/time/JNFrameTime";
|
||||
import { TB } from "../../../../resources/config/data/schema";
|
||||
import { TD } from "../../../App";
|
||||
const { property,ccclass } = _decorator;
|
||||
|
||||
//默认角色类
|
||||
@ -77,7 +76,7 @@ export default class GRoleDefault extends GRoleBase<{}>{
|
||||
}
|
||||
|
||||
//初始化
|
||||
onInit(type:number,role:TableGRole,tactical:GTactical,tacticalIndex:number){
|
||||
onInit(type:number,role:TB.TbGRole,tactical:GTactical,tacticalIndex:number){
|
||||
super.init(role);
|
||||
this.type = type;
|
||||
|
||||
@ -89,7 +88,7 @@ export default class GRoleDefault extends GRoleBase<{}>{
|
||||
|
||||
// 设置技能
|
||||
this.skills = role.roleSkillIds.map(skillId => {
|
||||
let info = TableGRoleSkill.getConfig(skillId);
|
||||
let info = TD.TbGRoleSkill.get(skillId);
|
||||
return (new GSkill[info.skillController]()).bind(this,info);
|
||||
})
|
||||
|
||||
@ -123,7 +122,7 @@ export default class GRoleDefault extends GRoleBase<{}>{
|
||||
if(!this.fsm.enemy) return;
|
||||
console.log(`播放动画[${this.nId}] onAttack`,this.fsm.enemy.nId)
|
||||
//敌人扣血
|
||||
let info = TableGRoleAttack.getConfig(this.role.id);
|
||||
let info = TD.TbGRoleAttack.get(this.role.id);
|
||||
(new GAttack[info.attackWay]()).attack(this,info);
|
||||
this.attackCallbacks.forEach(fun => fun());
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { TableGRole } from "../../../resources/config/ts/TableGRole";
|
||||
import { GFSMAnimBase } from "../base/fsm/GFSMAnimBase";
|
||||
import GFSMBase from "../base/fsm/GFSMBase";
|
||||
import { TB } from "../../../resources/config/data/schema";
|
||||
import { TD } from "../../App";
|
||||
import GRoleBase from "../base/role/GRoleBase";
|
||||
|
||||
//角色工具类
|
||||
@ -17,13 +16,13 @@ export class GRoleUtil{
|
||||
}
|
||||
|
||||
//通过Id 获取 GRole
|
||||
static getGRole(id:number):TableGRole{
|
||||
let info:TableGRole;
|
||||
if(!(info = TableGRole.getConfig(id))) return null;
|
||||
static getGRole(id:number):TB.TbGRole{
|
||||
let info:TB.TbGRole;
|
||||
if(!(info = TD.TbGRole.get(id))) return null;
|
||||
return info
|
||||
}
|
||||
|
||||
static getGRoles(ids:number[]):TableGRole[]{
|
||||
static getGRoles(ids:number[]):TB.TbGRole[]{
|
||||
return ids.map(id => GRoleUtil.getGRole(id));
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { Vec2 } from "cc";
|
||||
import { TableGRole } from "../../../resources/config/ts/TableGRole";
|
||||
import GBaseMode from "../GBaseMode";
|
||||
import { GRoleUtil } from "../entity/GRole";
|
||||
import { GTactical } from "../entity/GTactical";
|
||||
@ -12,11 +11,11 @@ import { JNFrameInfo } from "../../../../extensions/ngame/assets/ngame/sync/fram
|
||||
import { GMapLoop } from "../base/common/map/GMapLoop";
|
||||
import { Node } from "cc";
|
||||
import JNFrameTime from "../../../../extensions/ngame/assets/ngame/sync/frame/game/time/JNFrameTime";
|
||||
import { TableGMap } from "../../../resources/config/ts/TableGMap";
|
||||
import { app } from "../../App";
|
||||
import { TD, app } from "../../App";
|
||||
import { v3 } from "cc";
|
||||
import { v2 } from "cc";
|
||||
import GFSMOnHookMode from "./OnHook/GFSMOnHookMode";
|
||||
import { TB } from "../../../resources/config/data/schema";
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
//挂机模式状态
|
||||
@ -37,7 +36,7 @@ export interface GOnHookInfo{
|
||||
//阵法
|
||||
tactical: GTactical;
|
||||
//宠物列表
|
||||
roles: TableGRole[];
|
||||
roles: TB.TbGRole[];
|
||||
}
|
||||
|
||||
/**
|
||||
@ -80,7 +79,7 @@ export default class GOnHookMode extends GBaseMode<{}>{
|
||||
enemyRoles: GRoleDefault[] = [];
|
||||
|
||||
//地图信息
|
||||
mapInfo:TableGMap;
|
||||
mapInfo:TB.TbGMap;
|
||||
|
||||
//每一波怪的距离
|
||||
everyX:number = 600;
|
||||
@ -113,7 +112,7 @@ export default class GOnHookMode extends GBaseMode<{}>{
|
||||
this.fsm = new GFSMOnHookMode(this);
|
||||
|
||||
//初始化地图
|
||||
this.mapInfo = TableGMap.getConfig(60001);
|
||||
this.mapInfo = TD.TbGMap.get(60001);
|
||||
this.map1.init(app.battleRes.maps[60001][0],1);
|
||||
this.map2.init(app.battleRes.maps[60001][1],1);
|
||||
this.map3.init(app.battleRes.maps[60001][2],1,app.battleRes.maps[60001][1].width,app.battleRes.maps[60001][1].height);
|
||||
@ -169,7 +168,7 @@ export default class GOnHookMode extends GBaseMode<{}>{
|
||||
}
|
||||
|
||||
//生成宠物
|
||||
onGenRole(type: GOnHookModePlayerEnum,index:number,info:TableGRole) {
|
||||
onGenRole(type: GOnHookModePlayerEnum,index:number,info:TB.TbGRole) {
|
||||
|
||||
let tactical = this.getInfo(type).tactical;
|
||||
let pos:Vec2 = this.getInfo(type).tactical.getPosition(index);
|
||||
|
@ -5,9 +5,9 @@ import { Prefab } from "cc";
|
||||
import { instantiate } from "cc";
|
||||
import { Vec2 } from "cc";
|
||||
import { GRoleUtil } from "../entity/GRole";
|
||||
import { TableGRole } from "../../../resources/config/ts/TableGRole";
|
||||
import GRoleDefault from "../base/role/GRoleDefault";
|
||||
import { v3 } from "cc";
|
||||
import { TB } from "../../../resources/config/data/schema";
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
//PVP 角色
|
||||
@ -21,7 +21,7 @@ export interface GPVPModePlayerInfo{
|
||||
//阵法
|
||||
tactical: GTactical;
|
||||
//宠物列表
|
||||
roles: TableGRole[];
|
||||
roles: TB.TbGRole[];
|
||||
}
|
||||
|
||||
/**
|
||||
@ -79,7 +79,7 @@ export default class GPVPMode extends GBaseMode<{}>{
|
||||
}
|
||||
|
||||
//生成角色
|
||||
onGenRole(type: GPVPModePlayerEnum,index:number,info:TableGRole) {
|
||||
onGenRole(type: GPVPModePlayerEnum,index:number,info:TB.TbGRole) {
|
||||
|
||||
let tactical = this.getInfo(type).tactical;
|
||||
let pos:Vec2 = this.getInfo(type).tactical.getPosition(index);
|
||||
|
@ -1,8 +1,7 @@
|
||||
import { TableGRoleSkill } from "../../../resources/config/ts/TableGRoleSkill";
|
||||
import GRoleBase from "../base/role/GRoleBase";
|
||||
import GSkillCrazySquirrel from "./RoleSkill/疯狂松鼠/GSkillCrazySquirrel";
|
||||
import GSkillBulbasaurDoubleHit from "./RoleSkill/妙蛙种子/GSkillBulbasaurDoubleHit";
|
||||
import GRoleDefault from "../base/role/GRoleDefault";
|
||||
import { TB } from "../../../resources/config/data/schema";
|
||||
|
||||
//技能状态
|
||||
export enum GSkillState{
|
||||
@ -15,7 +14,7 @@ export enum GSkillState{
|
||||
export interface GSkillBase {
|
||||
|
||||
//设置
|
||||
bind(role:GRoleDefault,info:TableGRoleSkill):GSkillBase;
|
||||
bind(role:GRoleDefault,info:TB.TbGRoleSkill):GSkillBase;
|
||||
|
||||
//是否允许释放
|
||||
isRelease():boolean;
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { TableGRoleSkill } from "../../../resources/config/ts/TableGRoleSkill";
|
||||
import GRoleBase from "../base/role/GRoleBase";
|
||||
import { TB } from "../../../resources/config/data/schema";
|
||||
import GRoleDefault from "../base/role/GRoleDefault";
|
||||
import { GSkillBase, GSkillState } from "./GSkill";
|
||||
|
||||
@ -12,7 +11,7 @@ export default abstract class GSkillAngerBase implements GSkillBase {
|
||||
//怒气最大值
|
||||
angerMax:number = 0;
|
||||
|
||||
bind(role: GRoleDefault, info: TableGRoleSkill): GSkillBase {
|
||||
bind(role: GRoleDefault, info: TB.TbGRoleSkill): GSkillBase {
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
isRelease(): boolean {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { TableGRoleSkill } from "../../../resources/config/ts/TableGRoleSkill";
|
||||
import { TB } from "../../../resources/config/data/schema";
|
||||
import GRoleBase from "../base/role/GRoleBase";
|
||||
import GRoleDefault from "../base/role/GRoleDefault";
|
||||
import { GSkillBase, GSkillState } from "./GSkill";
|
||||
@ -12,7 +12,7 @@ export default abstract class GSkillCDBase implements GSkillBase {
|
||||
//冷却时间
|
||||
cdTime:number = 0;
|
||||
|
||||
bind(role:GRoleDefault,info: TableGRoleSkill):GSkillCDBase {
|
||||
bind(role:GRoleDefault,info: TB.TbGRoleSkill):GSkillCDBase {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { TableGRoleSkill } from "../../../../../resources/config/ts/TableGRoleSkill";
|
||||
import { TB } from "../../../../../resources/config/data/schema";
|
||||
import GRoleBase from "../../../base/role/GRoleBase";
|
||||
import GRoleDefault from "../../../base/role/GRoleDefault";
|
||||
import GSkillAngerBase from "../../GSkillAngerBase";
|
||||
@ -6,9 +6,9 @@ import GSkillAngerBase from "../../GSkillAngerBase";
|
||||
export default class GSkillBulbasaurDoubleHit extends GSkillAngerBase{
|
||||
|
||||
role:GRoleDefault;
|
||||
info: TableGRoleSkill;
|
||||
info: TB.TbGRoleSkill;
|
||||
|
||||
bind(role:GRoleDefault,info: TableGRoleSkill):GSkillBulbasaurDoubleHit {
|
||||
bind(role:GRoleDefault,info: TB.TbGRoleSkill):GSkillBulbasaurDoubleHit {
|
||||
//技能冷却
|
||||
this.role = role;
|
||||
this.info = info;
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { v2 } from "cc";
|
||||
import { JTween } from "../../../../../../extensions/ngame/assets/ngame/sync/frame/game/tween/JNFrameTween";
|
||||
import { TableGRoleSkill } from "../../../../../resources/config/ts/TableGRoleSkill";
|
||||
import { app } from "../../../../App";
|
||||
import GSpine from "../../../base/common/GSpine";
|
||||
import GRoleBase from "../../../base/role/GRoleBase";
|
||||
@ -10,6 +9,7 @@ import GBaseMode from "../../../GBaseMode";
|
||||
import GDetection from "../../../base/common/GDetection";
|
||||
import { rect } from "cc";
|
||||
import GRoleDefault from "../../../base/role/GRoleDefault";
|
||||
import { TB } from "../../../../../resources/config/data/schema";
|
||||
|
||||
/**
|
||||
* 疯狂松鼠技能
|
||||
@ -18,9 +18,9 @@ import GRoleDefault from "../../../base/role/GRoleDefault";
|
||||
export default class GSkillCrazySquirrel extends GSkillCDBase{
|
||||
|
||||
role:GRoleDefault;
|
||||
info: TableGRoleSkill;
|
||||
info: TB.TbGRoleSkill;
|
||||
|
||||
bind(role:GRoleDefault,info: TableGRoleSkill):GSkillCrazySquirrel {
|
||||
bind(role:GRoleDefault,info: TB.TbGRoleSkill):GSkillCrazySquirrel {
|
||||
//技能冷却
|
||||
this.cdTatal = parseInt(info.skillArgs[0]);
|
||||
this.role = role;
|
||||
@ -40,14 +40,14 @@ export default class GSkillCrazySquirrel extends GSkillCDBase{
|
||||
let ah = parseInt(this.info.skillArgs[2]);
|
||||
|
||||
//出现松鼠丢炸弹
|
||||
GSpine.onPlayAnotherSpine(this.role,app.battleRes.effects[50001],"skill",{
|
||||
GSpine.onPlayAnotherSpine(this.role,app.battleRes.roleResSpine[30003],"skill",{
|
||||
end:() => {
|
||||
//从天而降
|
||||
let pos = enemy.v2World.add(v2(0,1000));
|
||||
let end = enemy.v2World;
|
||||
|
||||
//生成火球
|
||||
let spine = GSpine.onCreateSpine(app.battleRes.effects[50002]);
|
||||
let spine = GSpine.onCreateSpine(app.battleRes.roleResSpine[30004]);
|
||||
this.role.mode.addGNode(spine.node,pos);
|
||||
spine.setAnimation(0,"animation",true);
|
||||
spine.node.angle = 90;
|
||||
@ -59,7 +59,7 @@ export default class GSkillCrazySquirrel extends GSkillCDBase{
|
||||
.onComplete(() => {
|
||||
let world = spine.node.worldPosition;
|
||||
spine.node.destroy();
|
||||
GSpine.onPlaySceneSpine(scene,v2(world.x,world.y),app.battleRes.effects[50003],"animation");
|
||||
GSpine.onPlaySceneSpine(scene,v2(world.x,world.y),app.battleRes.roleResSpine[30005],"animation");
|
||||
console.log(GDetection.testAABBRole(rect(world.x,world.y,aw,ah)).length)
|
||||
GDetection.testAABBRole(rect(world.x,world.y,aw,ah)).forEach(role =>{
|
||||
role.onHit();
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,2 +0,0 @@
|
||||
excel/
|
||||
excel
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,57 +0,0 @@
|
||||
declare namespace Editor {
|
||||
|
||||
namespace Interface {
|
||||
// ---- Package ---- start
|
||||
interface PackageInfo {
|
||||
debug: boolean;
|
||||
enable: boolean;
|
||||
info: PackageJson;
|
||||
invalid: boolean;
|
||||
name: string;
|
||||
path: string;
|
||||
version: string;
|
||||
}
|
||||
|
||||
interface PackageJson {
|
||||
name: string;
|
||||
version: string;
|
||||
|
||||
title?: string;
|
||||
author?: string;
|
||||
debug?: boolean;
|
||||
description?: string;
|
||||
main?: string;
|
||||
editor?: string;
|
||||
panel?: any;
|
||||
contributions?: { [key: string]: any };
|
||||
}
|
||||
// ---- Package ---- end
|
||||
|
||||
// ---- UI ---- start
|
||||
interface PanelInfo {
|
||||
template?: string;
|
||||
style?: string;
|
||||
listeners?: { [key: string]: () => {} };
|
||||
methods?: { [key: string]: Function };
|
||||
$?: { [key: string]: string };
|
||||
ready?(): void;
|
||||
update?(...args: any[]): void;
|
||||
beforeClose?(): void;
|
||||
close?(): void;
|
||||
}
|
||||
|
||||
namespace UIKit {
|
||||
interface UIPanelInfo extends PanelInfo {
|
||||
// 向上触发事件
|
||||
dispath(eventName: string, ...arg: any): void;
|
||||
}
|
||||
|
||||
interface EditorElementBase extends HTMLElement {
|
||||
value: any;
|
||||
dispath: (name: string, event: any) => void;
|
||||
}
|
||||
|
||||
}
|
||||
// ---- UI ---- end
|
||||
}
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
/// <reference path="./editor.d.ts"/>
|
||||
/// <reference path="./message.d.ts"/>
|
@ -1,27 +0,0 @@
|
||||
import * as AssetDB from './packages/asset-db/@types/message';
|
||||
import * as Scene from './packages/scene/@types/message';
|
||||
import * as Engine from './packages/engine/@types/message';
|
||||
import * as Builder from './packages/builder/@types/public/message';
|
||||
import * as Programming from './packages/programming/@types/message';
|
||||
// import * as Extension from './packages/extension/@types/message';
|
||||
|
||||
declare global {
|
||||
interface EditorMessageContent {
|
||||
params: any[],
|
||||
result: any;
|
||||
}
|
||||
|
||||
interface EditorMessageMap {
|
||||
[x: string]: EditorMessageContent;
|
||||
}
|
||||
|
||||
interface EditorMessageMaps {
|
||||
[x: string]: EditorMessageMap;
|
||||
'asset-db': AssetDB.message;
|
||||
'scene': Scene.message;
|
||||
'engine': Engine.message;
|
||||
'builder': Builder.message;
|
||||
'programming': Programming.message,
|
||||
// 'extension': Extension.message;
|
||||
}
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
|
||||
import { IInternalBuildOptions, IPolyFills, ISettings } from '@editor/library-type/packages/builder/@types/protect';
|
||||
export * from '@editor/library-type/packages/builder/@types/protect';
|
||||
|
||||
export type IOrientation = 'landscape' | 'portrait';
|
||||
|
||||
export interface IUserSettings extends ISettings {
|
||||
orientation: IOrientation;
|
||||
}
|
||||
|
||||
export interface ITaskOption extends IInternalBuildOptions {
|
||||
packages: {
|
||||
'alipay-mini-game': {
|
||||
deviceOrientation: IOrientation;
|
||||
remoteUrl: string;
|
||||
polyfills?: IPolyFills;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,73 +0,0 @@
|
||||
|
||||
|
||||
import { IInternalBuildOptions, InternalBuildResult } from '@editor/library-type/packages/builder/@types/protect';
|
||||
|
||||
export * from '@editor/library-type/packages/builder/@types/protect';
|
||||
export type IOrientation = 'landscape' | 'portrait';
|
||||
|
||||
export interface ITaskOption extends IInternalBuildOptions {
|
||||
packages: {
|
||||
'android': IOptions;
|
||||
native: {
|
||||
JobSystem: 'none' | 'tbb' | 'taskFlow';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export type IAppABI = 'armeabi-v7a' | 'arm64-v8a' | 'x86' | 'x86_64';
|
||||
|
||||
export interface IOptions {
|
||||
packageName: string;
|
||||
orientation: {
|
||||
landscapeRight: boolean;
|
||||
landscapeLeft: boolean;
|
||||
portrait: boolean;
|
||||
upsideDown: boolean;
|
||||
},
|
||||
|
||||
apiLevel: string;
|
||||
appABIs: IAppABI[];
|
||||
|
||||
useDebugKeystore: boolean;
|
||||
keystorePath: string;
|
||||
keystorePassword: string;
|
||||
keystoreAlias: string;
|
||||
keystoreAliasPassword: string;
|
||||
|
||||
appBundle: boolean;
|
||||
androidInstant: boolean;
|
||||
remoteUrl: string;
|
||||
sdkPath: string;
|
||||
ndkPath: string;
|
||||
|
||||
swappy: boolean;
|
||||
|
||||
renderBackEnd: {
|
||||
vulkan: boolean;
|
||||
gles3: boolean;
|
||||
gles2: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
export interface IBuildResult extends InternalBuildResult {
|
||||
userFrameWorks: boolean; // 是否使用用户的配置数据
|
||||
}
|
||||
|
||||
export interface ICertificateSetting {
|
||||
country: string;
|
||||
state: string;
|
||||
locality: string;
|
||||
organizationalUnit: string;
|
||||
organization: string;
|
||||
email: string;
|
||||
certificatePath: string;
|
||||
|
||||
password: string; // 密钥密码
|
||||
confirmPassword: string; // 确认密钥密码
|
||||
|
||||
alias: string; // 密钥别名
|
||||
aliasPassword: string;
|
||||
confirmAliasPassword: string;
|
||||
|
||||
validity: number; // 有效期
|
||||
}
|
@ -1,179 +0,0 @@
|
||||
import { AssetInfo, QueryAssetsOption, AssetOperationOption, AssetDBOptions, IAssetMeta } from './public';
|
||||
|
||||
export interface message extends EditorMessageMap {
|
||||
'query-ready': {
|
||||
params: [],
|
||||
result: boolean,
|
||||
},
|
||||
'create-asset': {
|
||||
params: [
|
||||
string,
|
||||
string | Buffer | null,
|
||||
] | [
|
||||
string,
|
||||
string | Buffer | null,
|
||||
AssetOperationOption,
|
||||
],
|
||||
result: AssetInfo | null,
|
||||
},
|
||||
'import-asset': {
|
||||
params: [
|
||||
string,
|
||||
string,
|
||||
] | [
|
||||
string,
|
||||
string,
|
||||
AssetOperationOption,
|
||||
],
|
||||
result: AssetInfo | null,
|
||||
},
|
||||
'copy-asset': {
|
||||
params: [
|
||||
string,
|
||||
string,
|
||||
] | [
|
||||
string,
|
||||
string,
|
||||
AssetOperationOption,
|
||||
],
|
||||
result: AssetInfo | null,
|
||||
},
|
||||
'move-asset': {
|
||||
params: [
|
||||
string,
|
||||
string,
|
||||
] | [
|
||||
string,
|
||||
string,
|
||||
AssetOperationOption,
|
||||
],
|
||||
result: AssetInfo | null,
|
||||
},
|
||||
'delete-asset': {
|
||||
params: [
|
||||
string,
|
||||
],
|
||||
result: AssetInfo | null,
|
||||
},
|
||||
'open-asset': {
|
||||
params: [
|
||||
string,
|
||||
],
|
||||
result: void,
|
||||
},
|
||||
'save-asset': {
|
||||
params: [
|
||||
string,
|
||||
string | Buffer,
|
||||
],
|
||||
result: AssetInfo | null,
|
||||
},
|
||||
'save-asset-meta': {
|
||||
params: [
|
||||
string,
|
||||
string,
|
||||
],
|
||||
result: AssetInfo | null,
|
||||
},
|
||||
'reimport-asset': {
|
||||
params: [
|
||||
string,
|
||||
],
|
||||
result: boolean,
|
||||
},
|
||||
'refresh-asset': {
|
||||
params: [
|
||||
string
|
||||
],
|
||||
result: boolean,
|
||||
},
|
||||
'query-asset-info': {
|
||||
params: [
|
||||
string, // uuid | url | path
|
||||
],
|
||||
result: AssetInfo | null,
|
||||
},
|
||||
'query-asset-meta': {
|
||||
params: [
|
||||
string,
|
||||
],
|
||||
result: IAssetMeta | null,
|
||||
},
|
||||
'query-path': {
|
||||
params: [
|
||||
string,
|
||||
],
|
||||
result: string | null,
|
||||
},
|
||||
'query-url': {
|
||||
params: [
|
||||
string
|
||||
],
|
||||
result: string | null,
|
||||
},
|
||||
'query-uuid': {
|
||||
params: [
|
||||
string
|
||||
],
|
||||
result: string | null,
|
||||
},
|
||||
'query-assets': {
|
||||
params: [] | [
|
||||
QueryAssetsOption,
|
||||
],
|
||||
result: AssetInfo[],
|
||||
},
|
||||
'generate-available-url': {
|
||||
params: [
|
||||
string,
|
||||
],
|
||||
result: string,
|
||||
},
|
||||
|
||||
// private
|
||||
|
||||
'query-asset-mtime': {
|
||||
params: [
|
||||
string
|
||||
],
|
||||
result: string | null,
|
||||
},
|
||||
'refresh': {
|
||||
params: [],
|
||||
result: void,
|
||||
},
|
||||
'open-devtools': {
|
||||
params: [],
|
||||
result: void,
|
||||
},
|
||||
'query-db-info': {
|
||||
params: [
|
||||
string,
|
||||
],
|
||||
result: AssetDBOptions,
|
||||
},
|
||||
'create-asset-dialog': {
|
||||
params: [
|
||||
string,
|
||||
] | [
|
||||
string,
|
||||
string,
|
||||
],
|
||||
result: string | null,
|
||||
},
|
||||
'init-asset': {
|
||||
params: [
|
||||
string,
|
||||
string,
|
||||
],
|
||||
result: AssetInfo | null,
|
||||
},
|
||||
'query-all-importer': {
|
||||
params: [],
|
||||
result: string[],
|
||||
},
|
||||
'query-all-asset-types': {
|
||||
params: [],
|
||||
result: string[],
|
||||
},
|
||||
}
|
@ -1,115 +0,0 @@
|
||||
// Basic information about the resource
|
||||
// 资源的基础信息
|
||||
export interface AssetInfo {
|
||||
// Asset name
|
||||
// 资源名字
|
||||
name: string;
|
||||
// Asset display name
|
||||
// 资源用于显示的名字
|
||||
displayName: string;
|
||||
// URL
|
||||
source: string;
|
||||
// loader 加载的层级地址
|
||||
path: string;
|
||||
// loader 加载地址会去掉扩展名,这个参数不去掉
|
||||
url: string;
|
||||
// 绝对路径
|
||||
file: string;
|
||||
// 资源的唯一 ID
|
||||
uuid: string;
|
||||
// 使用的导入器名字
|
||||
importer: string;
|
||||
// 类型
|
||||
type: string;
|
||||
// 是否是文件夹
|
||||
isDirectory: boolean;
|
||||
// 导入资源的 map
|
||||
library: { [key: string]: string };
|
||||
// 子资源 map
|
||||
subAssets: { [key: string]: AssetInfo };
|
||||
// 是否显示
|
||||
visible: boolean;
|
||||
// 是否只读
|
||||
readonly: boolean;
|
||||
|
||||
// 虚拟资源可以实例化成实体的话,会带上这个扩展名
|
||||
instantiation?: string;
|
||||
// 跳转指向资源
|
||||
redirect?: IRedirectInfo;
|
||||
// 继承类型
|
||||
extends?: string[];
|
||||
// 是否导入完成
|
||||
imported: boolean;
|
||||
// 是否导入失败
|
||||
invalid: boolean;
|
||||
}
|
||||
|
||||
export interface IRedirectInfo {
|
||||
// 跳转资源的类型
|
||||
type: string;
|
||||
// 跳转资源的 uuid
|
||||
uuid: string;
|
||||
}
|
||||
|
||||
export interface QueryAssetsOption {
|
||||
type?: string;
|
||||
pattern?: string;
|
||||
ccType?: string;
|
||||
extname?: string;
|
||||
importer?: string;
|
||||
isBundle?: boolean;
|
||||
}
|
||||
|
||||
export interface AssetOperationOption {
|
||||
// 是否强制覆盖已经存在的文件,默认 false
|
||||
overwrite?: boolean;
|
||||
// 是否自动重命名冲突文件,默认 false
|
||||
rename?: boolean;
|
||||
}
|
||||
|
||||
export interface AssetDBOptions {
|
||||
name: string;
|
||||
target: string;
|
||||
library: string;
|
||||
temp: string;
|
||||
/**
|
||||
* 0: 忽略错误
|
||||
* 1: 仅仅打印错误
|
||||
* 2: 打印错误、警告
|
||||
* 3: 打印错误、警告、日志
|
||||
* 4: 打印错误、警告、日志、调试信息
|
||||
*/
|
||||
level: number;
|
||||
ignoreFiles: string[];
|
||||
readonly: boolean;
|
||||
}
|
||||
|
||||
export interface ContributionInfo {
|
||||
mount?: {
|
||||
path: string;
|
||||
readonly?: boolean;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ExecuteAssetDBScriptMethodOptions {
|
||||
name: string;
|
||||
method: string;
|
||||
args: any[];
|
||||
}
|
||||
|
||||
export interface IAssetMeta {
|
||||
ver: string;
|
||||
importer: string;
|
||||
imported: boolean;
|
||||
uuid: string;
|
||||
files: string[];
|
||||
subMetas: {
|
||||
[index: string]: IAssetMeta;
|
||||
};
|
||||
userData: {
|
||||
[index: string]: any;
|
||||
};
|
||||
displayName: string;
|
||||
id: string;
|
||||
name: string;
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
/**
|
||||
* 外部插件注册搜索方式指定返回的接口
|
||||
*
|
||||
* @export
|
||||
* @interface SearchMenuItem
|
||||
*/
|
||||
export interface SearchMenuItem {
|
||||
label: string;
|
||||
key: string;
|
||||
// handler 方法是外部扩展的搜索方法,返回 true 表示匹配搜索成功
|
||||
// searchValue 表示 assets 面板输入的搜索内容,asset 表示匹配搜索时的节点信息
|
||||
handler: (searchVale: string, asset: any) => Boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* 外部插件注册扩展的入口
|
||||
* 可以是搜索方式或限定搜索类型
|
||||
*
|
||||
* @export
|
||||
* @interface SearchExtension
|
||||
*/
|
||||
export interface SearchExtension {
|
||||
typeMenu?: Function; // 限定的搜索类型
|
||||
searchMenu: Function; // 搜索方式
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
|
||||
export * from '@editor/library-type/packages/builder/@types/protect';
|
||||
import { IInternalBuildOptions } from '@editor/library-type/packages/builder/@types/protect';
|
||||
|
||||
export type IOrientation = 'auto' | 'landscape' | 'portrait';
|
||||
|
||||
export interface IOptions {
|
||||
appid: string;
|
||||
remoteServerAddress: string;
|
||||
buildOpenDataContextTemplate: boolean;
|
||||
orientation: IOrientation;
|
||||
}
|
||||
|
||||
export interface ITaskOption extends IInternalBuildOptions {
|
||||
packages: {
|
||||
'baidu-mini-game': IOptions;
|
||||
};
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
|
||||
export * from './public';
|
@ -1,88 +0,0 @@
|
||||
import { ITextureCompressType, IPVRQuality, IASTCQuality, IETCQuality, ITextureFormatInfo } from './texture-compress';
|
||||
import { IBuildTaskOption } from './options';
|
||||
import { IBuildResult } from './build-result';
|
||||
|
||||
export interface IBuildPluginConfig {
|
||||
hooks?: string; // relate url about IHook
|
||||
options?: IDisplayOptions; // config of options
|
||||
verifyRuleMap?: IVerificationRuleMap;
|
||||
}
|
||||
|
||||
export type IVerificationFunc = (val: any, ...arg: any[]) => boolean | Promise<boolean>;
|
||||
|
||||
export type IVerificationRuleMap = Record<
|
||||
string,
|
||||
{
|
||||
func?: IVerificationFunc;
|
||||
message?: string;
|
||||
}
|
||||
>;
|
||||
|
||||
export interface ITextureFormatConfig {
|
||||
displayName: string;
|
||||
options: IDisplayOptions;
|
||||
formats: ITextureFormatInfo[]; // 未指定 formats 则当前格式 key 作为存储的格式 value
|
||||
suffix: string;
|
||||
}
|
||||
|
||||
export type IDisplayOptions = Record<string, IConfigItem>;
|
||||
|
||||
export type ArrayItem = {
|
||||
label: string;
|
||||
value: string;
|
||||
};
|
||||
export interface IConfigItem {
|
||||
// 配置显示的名字,如果需要翻译,则传入 i18n:${key}
|
||||
label?: string;
|
||||
// 设置的简单说明
|
||||
description?: string;
|
||||
// 默认值
|
||||
default?: any;
|
||||
// 配置的类型
|
||||
type?: 'array' | 'object';
|
||||
itemConfigs?: IConfigItem[] | Record<string, IConfigItem>;
|
||||
verifyRules?: string[];
|
||||
attributes?: any;
|
||||
render?: {
|
||||
ui: string;
|
||||
attributes?: any;
|
||||
items?: ArrayItem[];
|
||||
};
|
||||
}
|
||||
|
||||
export interface IBuildPlugin {
|
||||
configs?: BuildPlugin.Configs;
|
||||
assetHandlers?: BuildPlugin.AssetHandlers;
|
||||
load?: BuildPlugin.load;
|
||||
unload?: BuildPlugin.Unload;
|
||||
}
|
||||
export type IBaseHooks = (options: IBuildTaskOption, result: IBuildResult) => Promise<void> | void;
|
||||
export type IBuildStageHooks = (root: string, options: IBuildTaskOption) => Promise<void> | void;
|
||||
|
||||
export namespace BuildPlugin {
|
||||
export type Configs = Record<string, IBuildPluginConfig>;
|
||||
export type AssetHandlers = string;
|
||||
export type load = () => Promise<void> | void;
|
||||
export type Unload = () => Promise<void> | void;
|
||||
}
|
||||
|
||||
export namespace BuildHook {
|
||||
export type throwError = boolean; // 插件注入的钩子函数,在执行失败时是否直接退出构建流程
|
||||
export type title = string; // 插件任务整体 title,支持 i18n 写法
|
||||
export type onBeforeBuild = IBaseHooks;
|
||||
export type onBeforeCompressSettings = IBaseHooks;
|
||||
export type onAfterCompressSettings = IBaseHooks;
|
||||
export type onAfterBuild = IBaseHooks;
|
||||
|
||||
export type onAfterMake = IBuildStageHooks;
|
||||
export type onBeforeMake = IBuildStageHooks;
|
||||
|
||||
export type load = () => Promise<void> | void;
|
||||
export type unload = () => Promise<void> | void;
|
||||
}
|
||||
|
||||
export namespace AssetHandlers {
|
||||
export type compressTextures = (
|
||||
tasks: { src: string; dest: string; quality: number | IPVRQuality | IASTCQuality | IETCQuality; format: ITextureCompressType }[],
|
||||
) => Promise<void>;
|
||||
}
|
@ -1,190 +0,0 @@
|
||||
/**
|
||||
* settings.js 里定义的数据
|
||||
*/
|
||||
|
||||
import { ISplashSetting, ICustomJointTextureLayout, UUID } from "./options";
|
||||
|
||||
// ****************************** settings ************************************************
|
||||
|
||||
// debug: true
|
||||
// designResolution: {width: "960", height: "640", policy: 4}
|
||||
// jsList: ["assets/resources/b.js", "assets/resources/a.js"]
|
||||
// launchScene: "db://assets/New Scene-001.scene"
|
||||
// platform: "web-desktop"
|
||||
// rawAssets: {
|
||||
// assets: {
|
||||
// "0e95a9f8-d4e7-4849-875a-7a11dd692b34": ["mesh/env/gltf/textures/birch_yellow_mat_baseColor.png", "cc.ImageAsset"]
|
||||
// }
|
||||
// internal: {
|
||||
// "1baf0fc9-befa-459c-8bdd-af1a450a0319": ["effects/builtin-standard.effect", "cc.EffectAsset"]
|
||||
// }
|
||||
// }
|
||||
// scenes: [{url: "db://assets/New Scene-001.scene", uuid: "69dc4a42-cc6c-49fb-9a57-7de0c212f83d"},…]
|
||||
// startScene: "current_scene"
|
||||
export interface ISettings {
|
||||
CocosEngine: string;
|
||||
debug: boolean;
|
||||
designResolution: ISettingsDesignResolution;
|
||||
jsList: string[];
|
||||
launchScene: string;
|
||||
preloadAssets: string[],
|
||||
moduleIds: string[];
|
||||
platform: string;
|
||||
renderPipeline: string;
|
||||
physics?: IPhysicsConfig;
|
||||
exactFitScreen: boolean;
|
||||
|
||||
bundleVers: Record<string, string>;
|
||||
subpackages: string[];
|
||||
remoteBundles: string[];
|
||||
server: string;
|
||||
hasResourcesBundle: boolean;
|
||||
hasStartSceneBundle: boolean;
|
||||
|
||||
scriptPackages?: string[];
|
||||
splashScreen?: ISplashSetting;
|
||||
|
||||
customJointTextureLayouts?: ICustomJointTextureLayout[];
|
||||
|
||||
importMaps?: Array<{
|
||||
url: string;
|
||||
map: any;
|
||||
}>;
|
||||
|
||||
macros?: Record<string, any>;
|
||||
collisionMatrix?: any;
|
||||
groupList?: any;
|
||||
// preview
|
||||
engineModules: string[];
|
||||
customLayers: {name: string, bit: number}[];
|
||||
}
|
||||
|
||||
// 物理配置
|
||||
export interface IVec3Like {
|
||||
x: number;
|
||||
y: number;
|
||||
z: number;
|
||||
}
|
||||
|
||||
export interface ICollisionMatrix {
|
||||
[x: string]: number;
|
||||
}
|
||||
|
||||
export interface IPhysicsMaterial {
|
||||
friction: number; // 0.5
|
||||
rollingFriction: number; // 0.1
|
||||
spinningFriction: number; // 0.1
|
||||
restitution: number; // 0.1
|
||||
}
|
||||
|
||||
export interface IPhysicsConfig {
|
||||
gravity: IVec3Like; // (0,-10, 0)
|
||||
allowSleep: boolean; // true
|
||||
sleepThreshold: number; // 0.1,最小 0
|
||||
autoSimulation: boolean; // true
|
||||
fixedTimeStep: number; // 1 / 60 ,最小 0
|
||||
maxSubSteps: number; // 1,最小 0
|
||||
defaultMaterial: IPhysicsMaterial;
|
||||
useNodeChains: boolean; // true
|
||||
collisionMatrix: ICollisionMatrix;
|
||||
physicsEngine: string;
|
||||
}
|
||||
|
||||
export interface IPackageInfo {
|
||||
name: string;
|
||||
path: string;
|
||||
uuids: UUID[];
|
||||
}
|
||||
|
||||
export interface ISettingsDesignResolution {
|
||||
width: number;
|
||||
height: number;
|
||||
policy: number;
|
||||
}
|
||||
|
||||
interface IAssetPathBase {
|
||||
bundleName?: string;
|
||||
redirect?: string; // 重定向的 bundle 包名
|
||||
}
|
||||
|
||||
export interface IRawAssetPathInfo extends IAssetPathBase {
|
||||
raw: string[];
|
||||
}
|
||||
export declare interface IAssetPathInfo extends IAssetPathBase {
|
||||
raw?: string[];
|
||||
json?: string;
|
||||
groupIndex?: number;
|
||||
}
|
||||
|
||||
export interface IJsonPathInfo extends IAssetPathBase {
|
||||
json?: string;
|
||||
groupIndex?: number;
|
||||
}
|
||||
|
||||
export interface IBuildPaths {
|
||||
dir: string; // 构建资源输出地址( assets 所在的目录,并不一定与构建目录对应)
|
||||
settings: string; // settings.json 输出地址
|
||||
systemJs?: string; // system.js 生成地址
|
||||
engineDir?: string; // 引擎生成地址
|
||||
polyfillsJs?: string; // polyfill.js 生成地址
|
||||
assets: string; // assets 目录
|
||||
subpackages: string; // subpackages 目录
|
||||
remote: string; // remote 目录
|
||||
bundleScripts: string // bundle 的脚本,某些平台无法下载脚本,则将远程包中的脚本移到本地
|
||||
applicationJS: string; // application.js 的生成地址
|
||||
compileConfig?: string; // cocos.compile.config.json
|
||||
importMap: string; // import-map 文件地址
|
||||
}
|
||||
|
||||
export declare class IBuildResult {
|
||||
dest: string; // options 指定的构建目录
|
||||
|
||||
paths: IBuildPaths; // 构建后资源相关地址集合
|
||||
|
||||
settings?: ISettings;
|
||||
|
||||
/**
|
||||
* 指定的 uuid 资源是否包含在构建资源中
|
||||
*/
|
||||
containsAsset: (uuid: string) => boolean;
|
||||
|
||||
/**
|
||||
* 获取指定 uuid 原始资源的存放路径(不包括序列化 json)
|
||||
* 自动图集的小图 uuid 和自动图集的 uuid 都将会查询到合图大图的生成路径
|
||||
* 实际返回多个路径的情况:查询 uuid 为自动图集资源,且对应图集生成多张大图,纹理压缩会有多个图片格式路径
|
||||
*/
|
||||
getRawAssetPaths: (uuid: string) => IRawAssetPathInfo[];
|
||||
|
||||
/**
|
||||
* 获取指定 uuid 资源的序列化 json 路径
|
||||
*/
|
||||
getJsonPathInfo: (uuid: string) => IJsonPathInfo[];
|
||||
|
||||
/**
|
||||
* 获取指定 uuid 资源的路径相关信息
|
||||
* @return {raw?: string[]; json?: string; groupIndex?: number;}
|
||||
* @return.raw: 该资源源文件的实际存储位置
|
||||
* @return.json: 该资源序列化 json 的实际存储位置,不存在为空
|
||||
* @return.groupIndex: 若该资源的序列化 json 在某个 json 分组内,这里标识在分组内的 index,不存在为空
|
||||
*/
|
||||
getAssetPathInfo: (uuid: string) => IAssetPathInfo[];
|
||||
}
|
||||
|
||||
export interface IBundleConfig {
|
||||
importBase: string; // bundle 中 import 目录的名称,通常是 'import'
|
||||
nativeBase: string; // native 中 native 目录的名称,通常是 'native'
|
||||
name: string; // bundle 的名称,可以通过 bundle 名称加载 bundle
|
||||
deps: string[]; // 该 bundle 依赖的其他 bundle 名称
|
||||
uuids: UUID[]; // 该 bundle 中的所有资源的 uuid
|
||||
paths: Record<string, any[]>; // 该 bundle 中可以通过路径加载的资源,参考以前 settings 中 rawAssets 的定义
|
||||
scenes: Record<string, UUID|number>; // 该 bundle 中所有场景,场景名为 key, uuid 为 value
|
||||
packs: Record<UUID, UUID[]>; // 该 bundle 中所有合并的 json, 参考以前 settings 中 packedAssets 的定义
|
||||
versions: { import: Array<string|number>, native: Array<string|number> }; // 该 bundle 中所有资源的版本号,参考以前 settings 中 md5AssetsMap 的定义
|
||||
redirect: Array<string|number>; // 该 bundle 中重定向到其他 bundle 的资源
|
||||
debug: boolean; // 是否是 debug 模式,debug 模式会对 config.json 的数据进行压缩,所以运行时得解压
|
||||
types?: string[]; // paths 中的类型数组,参考以前 settings 中 assetTypes 的定义
|
||||
encrypted?: boolean; // 原生上使用,标记该 bundle 中的脚本是否加密
|
||||
isZip?: boolean; // 是否是 zip 模式
|
||||
zipVersion?: string;
|
||||
extensionMap: Record<string, UUID[]>
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
import { IBuild } from ".";
|
||||
|
||||
// 定义 builder 进程内的全局变量
|
||||
declare global {
|
||||
// @ts-ignore
|
||||
const Build: IBuild;
|
||||
}
|
@ -1,100 +0,0 @@
|
||||
import { ITransformOptions } from './options';
|
||||
|
||||
export * from './build-result';
|
||||
export * from './build-plugin';
|
||||
export * from './texture-compress';
|
||||
export * from './options';
|
||||
|
||||
interface IAppendRes {
|
||||
hash: string;
|
||||
paths: string[];
|
||||
}
|
||||
|
||||
interface ICreateBundleOptions {
|
||||
excludes?: string[];
|
||||
debug?: boolean;
|
||||
sourceMap?: boolean;
|
||||
}
|
||||
export interface IBuildUtils {
|
||||
/**
|
||||
* 压缩 uuid
|
||||
* 'fc991dd7-0033-4b80-9d41-c8a86a702e59' -> 'fc9913XADNLgJ1ByKhqcC5Z'
|
||||
*/
|
||||
compressUuid: (uuid: string, min: boolean) => string;
|
||||
|
||||
/**
|
||||
* 解压缩 uuid
|
||||
* 'fc9913XADNLgJ1ByKhqcC5Z' -> 'fc991dd7-0033-4b80-9d41-c8a86a702e59'
|
||||
*/
|
||||
decompressUuid: (uuid: string) => string;
|
||||
|
||||
/**
|
||||
* 翻译带有 i18n 开头的名称(i18n:test)(待定)
|
||||
* 'i18n:test' -> '测试'
|
||||
*/
|
||||
transI18nName: (name: string) => string;
|
||||
|
||||
/**
|
||||
* 移除 db 前缀
|
||||
* 'db://assets/test.jpg' -> 'assets/test.jpg'
|
||||
*/
|
||||
removeDbHeader: (url: string) => string;
|
||||
|
||||
/**
|
||||
* 将 db 开头的 url 转为项目里的实际 url
|
||||
* 'db://assets/test.jpg' -> 'c:/project/assets/test.jpg'
|
||||
*/
|
||||
dbUrlToRawPath: (url: string) => string;
|
||||
|
||||
/**
|
||||
* 从路径里获取存在的 uuid
|
||||
* 'E:\test3d\library\oc\0c0c1f5742-89b0-4a1e-b5eb-914d84f48c1c.json' -> '0c0c1f5742-89b0-4a1e-b5eb-914d84f48c1c'
|
||||
*/
|
||||
getUuidFromPath: (path: string) => string;
|
||||
|
||||
/**
|
||||
* 检查是否全局安装了 nodejs
|
||||
*/
|
||||
isInstallNodeJs: () => Promise<boolean>;
|
||||
|
||||
/**
|
||||
* 逐文件拷贝
|
||||
*/
|
||||
copyDirSync: (src: string, dest: string) => void;
|
||||
|
||||
/**
|
||||
* 获取相对路径接口
|
||||
* 返回 / 拼接的相对路径
|
||||
*/
|
||||
relativeUrl: (from: string, to: string) => string;
|
||||
|
||||
transformCode: (code: string, options: ITransformOptions) => Promise<string>;
|
||||
|
||||
/**
|
||||
* 给指定路径添加 md5
|
||||
*/
|
||||
appendMd5ToPaths: (paths: string[]) => Promise<IAppendRes | null>;
|
||||
|
||||
calcMd5: (data: Buffer | string) => string;
|
||||
|
||||
copyPaths: (paths: { src: string; dest: string }[]) => Promise<void[]>;
|
||||
|
||||
createBundle: (src: string, dest: string, options?: ICreateBundleOptions) => Promise<unknown>;
|
||||
}
|
||||
export interface IBuild {
|
||||
Utils: IBuildUtils;
|
||||
|
||||
LIBRARY_NAME: string;
|
||||
IMPORT_HEADER: string;
|
||||
NATIVE_HEADER: string;
|
||||
ASSETS_HEADER: string;
|
||||
SUBPACKAGES_HEADER: string;
|
||||
REMOTE_HEADER: string;
|
||||
BUNDLE_SCRIPTS_HEADER: string;
|
||||
SCRIPT_NAME: string;
|
||||
CONFIG_NAME: string;
|
||||
BUNDLE_ZIP_NAME: string;
|
||||
projectTempDir: string;
|
||||
globalTempDir: string;
|
||||
buildTemplateDir: string; // 构建模板地址 build-templates
|
||||
}
|
@ -1,40 +0,0 @@
|
||||
import { IBundleConfig, ISettings } from "./build-result";
|
||||
import { ITaskItemJSON } from "./options";
|
||||
export interface message extends EditorMessageMap {
|
||||
'open-devtools': {
|
||||
params: [],
|
||||
result: void,
|
||||
},
|
||||
open: {
|
||||
params: [],
|
||||
result: void,
|
||||
},
|
||||
'generate-preview-setting': {
|
||||
params: any[],
|
||||
result: Promise<{
|
||||
settings: ISettings;
|
||||
script2library: Record<string, string>;
|
||||
bundleConfigs: IBundleConfig[];
|
||||
}>,
|
||||
},
|
||||
'query-tasks-info': {
|
||||
params: [],
|
||||
result: {
|
||||
queue: Record<string, ITaskItemJSON>,
|
||||
free: Promise<boolean>,
|
||||
},
|
||||
},
|
||||
'query-task': {
|
||||
params: string[],
|
||||
result: Promise<ITaskItemJSON>,
|
||||
},
|
||||
/**
|
||||
* 预览合图
|
||||
* @param {object} pacUuid
|
||||
*/
|
||||
'preview-pac': {
|
||||
params: string[],
|
||||
result: Promise<ITaskItemJSON>,
|
||||
},
|
||||
|
||||
}
|
@ -1,134 +0,0 @@
|
||||
/**
|
||||
* 构建所需的完整参数
|
||||
*/
|
||||
export interface IBuildTaskOption {
|
||||
// 构建后的游戏文件夹生成的路径
|
||||
buildPath: string;
|
||||
debug: boolean;
|
||||
inlineSpriteFrames: boolean;
|
||||
md5Cache: boolean;
|
||||
// bundle 设置
|
||||
mainBundleCompressionType: BundleCompressionType;
|
||||
mainBundleIsRemote: boolean;
|
||||
moveRemoteBundleScript: boolean;
|
||||
mergeJson: boolean;
|
||||
name: string;
|
||||
// packAutoAtlas: boolean;
|
||||
platform: Platform;
|
||||
scenes: IBuildSceneItem[];
|
||||
skipCompressTexture: boolean;
|
||||
sourceMaps: boolean;
|
||||
startScene: string;
|
||||
outputName: string;
|
||||
experimentalEraseModules: boolean;
|
||||
|
||||
/**
|
||||
* 是否是预览进程发送的构建请求。
|
||||
* @default false
|
||||
*/
|
||||
preview?: boolean;
|
||||
|
||||
// 项目设置
|
||||
includeModules?: string[];
|
||||
renderPipeline?: string;
|
||||
designResolution?: IBuildDesignResolution;
|
||||
physicsConfig?: any;
|
||||
flags?: Record<string, boolean>;
|
||||
|
||||
|
||||
// 是否使用自定义插屏选项
|
||||
replaceSplashScreen?: boolean;
|
||||
splashScreen: ISplashSetting;
|
||||
|
||||
packages?: Record<string, any>;
|
||||
id?: string; // 手动配置构建任务 id
|
||||
// recompileConfig?: IRecompileConfig;
|
||||
|
||||
customLayers: {name: string, value: number}[];
|
||||
}
|
||||
|
||||
export type UUID = string;
|
||||
|
||||
export interface ISplashSetting {
|
||||
base64src: string;
|
||||
displayRatio: number;
|
||||
totalTime: number;
|
||||
effect: string;
|
||||
clearColor: { x: number; y: number; z: number; w: number };
|
||||
displayWatermark: boolean;
|
||||
}
|
||||
|
||||
export interface ICustomJointTextureLayout {
|
||||
textureLength: number;
|
||||
contents: IChunkContent[];
|
||||
}
|
||||
|
||||
export interface IChunkContent {
|
||||
skeleton: null | string;
|
||||
clips: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 构建使用的设计分辨率数据
|
||||
*/
|
||||
export interface IBuildDesignResolution {
|
||||
height: number;
|
||||
width: number;
|
||||
fitWidth?: boolean;
|
||||
fitHeight?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* 构建使用的场景的数据
|
||||
*/
|
||||
export interface IBuildSceneItem {
|
||||
url: string;
|
||||
uuid: string;
|
||||
}
|
||||
|
||||
// **************************** options *******************************************
|
||||
export type Platform =
|
||||
| 'web-desktop'
|
||||
| 'web-mobile'
|
||||
| 'wechatgame'
|
||||
| 'oppo-mini-game'
|
||||
| 'vivo-mini-game'
|
||||
| 'huawei-quick-game'
|
||||
| 'alipay-mini-game'
|
||||
| 'mac'
|
||||
| 'ios'
|
||||
| 'linux'
|
||||
// | 'ios-app-clip'
|
||||
| 'android'
|
||||
| 'ohos'
|
||||
| 'open-harmonyos'
|
||||
| 'windows'
|
||||
| 'xiaomi-quick-game'
|
||||
| 'baidu-mini-game'
|
||||
| 'bytedance-mini-game'
|
||||
| 'cocos-play'
|
||||
| 'huawei-agc'
|
||||
| 'link-sure'
|
||||
| 'qtt'
|
||||
| 'cocos-runtime'
|
||||
;
|
||||
|
||||
export type BundleCompressionType = 'none' | 'merge_dep' | 'merge_all_json' | 'subpackage' | 'zip';
|
||||
export type IModules = 'esm' | 'commonjs' | 'systemjs';
|
||||
|
||||
export interface ITransformOptions {
|
||||
importMapFormat: IModules;
|
||||
}
|
||||
|
||||
export type ITaskState = 'waiting' | 'success' | 'failure' | 'cancel' | 'processing';
|
||||
|
||||
export interface ITaskItemJSON {
|
||||
id: string;
|
||||
progress: number;
|
||||
state: ITaskState;
|
||||
message: string;
|
||||
options: IBuildTaskOption;
|
||||
time: string;
|
||||
dirty: boolean;
|
||||
rawOptions: IBuildTaskOption;
|
||||
}
|
@ -1,70 +0,0 @@
|
||||
export type ITextureCompressType =
|
||||
| 'jpg'
|
||||
| 'png'
|
||||
| 'webp'
|
||||
| 'pvrtc_4bits_rgb'
|
||||
| 'pvrtc_4bits_rgba'
|
||||
| 'pvrtc_4bits_rgb_a'
|
||||
| 'pvrtc_2bits_rgb'
|
||||
| 'pvrtc_2bits_rgba'
|
||||
| 'pvrtc_2bits_rgb_a'
|
||||
| 'etc1_rgb'
|
||||
| 'etc1_rgb_a'
|
||||
| 'etc2_rgb'
|
||||
| 'etc2_rgba'
|
||||
| 'astc_4x4'
|
||||
| 'astc_5x5'
|
||||
| 'astc_6x6'
|
||||
| 'astc_8x8'
|
||||
| 'astc_10x5'
|
||||
| 'astc_10x10'
|
||||
| 'astc_12x12'
|
||||
| string;
|
||||
export type ITextureCompressPlatform = 'miniGame' | 'web' | 'ios' | 'android';
|
||||
|
||||
export interface IHandlerInfo {
|
||||
type: 'program' | 'npm' | 'function';
|
||||
info: ICommandInfo | Function;
|
||||
func?: Function;
|
||||
}
|
||||
|
||||
export interface ICustomConfig {
|
||||
id: string;
|
||||
name: string;
|
||||
path: string;
|
||||
command: string;
|
||||
format: string;
|
||||
overwrite?: boolean;
|
||||
}
|
||||
|
||||
export interface ICommandInfo {
|
||||
command: string;
|
||||
params?: string[];
|
||||
path: string;
|
||||
}
|
||||
|
||||
export interface ITextureFormatInfo {
|
||||
displayName: string;
|
||||
value: ITextureCompressType | string;
|
||||
formatSuffix?: string;
|
||||
alpha?: boolean;
|
||||
formatType?: string;
|
||||
handler?: IHandlerInfo;
|
||||
custom?: boolean;
|
||||
params?: string[];
|
||||
}
|
||||
export interface ISupportFormat {
|
||||
rgb: ITextureCompressType[];
|
||||
rgba: ITextureCompressType[];
|
||||
}
|
||||
export interface IConfigGroupsInfo {
|
||||
defaultSupport?: ISupportFormat,
|
||||
support: ISupportFormat,
|
||||
displayName: string;
|
||||
icon: string;
|
||||
}
|
||||
export type IConfigGroups = Record<ITextureCompressPlatform, IConfigGroupsInfo>;
|
||||
|
||||
export type IPVRQuality = 'fastest' | 'fast' | 'normal' | 'high' | 'best';
|
||||
export type IETCQuality = 'slow' | 'fast';
|
||||
export type IASTCQuality = 'veryfast' | 'fast' | 'medium' | 'thorough' | 'exhaustive';
|
@ -1,25 +0,0 @@
|
||||
|
||||
export * from '@editor/library-type/packages/builder/@types/protect';
|
||||
import { IInternalBuildOptions } from '@editor/library-type/packages/builder/@types/protect';
|
||||
|
||||
export type IOrientation = 'auto' | 'landscape' | 'portrait';
|
||||
|
||||
export interface IOptions {
|
||||
appid: string;
|
||||
remoteServerAddress: string;
|
||||
buildOpenDataContextTemplate: boolean;
|
||||
orientation: IOrientation;
|
||||
physX: {
|
||||
use: 'physX' | 'project';
|
||||
notPackPhysXLibs: boolean;
|
||||
mutiThread: boolean;
|
||||
subThreadCount: number;
|
||||
epsilon: number;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ITaskOption extends IInternalBuildOptions {
|
||||
packages: {
|
||||
'bytedance-mini-game': IOptions;
|
||||
};
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
/// <reference path="../../../@types/index.d.ts"/>
|
||||
/// <reference path="@editor/library-type/packages/builder/@types/protect/global.d.ts"/>
|
||||
|
||||
export * from "@editor/library-type/packages/builder/@types/protect";
|
||||
import { IInternalBuildOptions } from "@editor/library-type/packages/builder/@types/protect";
|
||||
|
||||
export type IOrientation = 'landscape' | 'portrait';
|
||||
|
||||
export interface PlatformSettings {
|
||||
runtimeVersion: string,
|
||||
deviceOrientation: IOrientation,
|
||||
statusbarDisplay: boolean,
|
||||
startSceneAssetBundle: false,
|
||||
resourceURL: string,
|
||||
workerPath: string,
|
||||
XHRTimeout: number,
|
||||
WSTimeout: number,
|
||||
uploadFileTimeout: number,
|
||||
downloadFileTimeout: number,
|
||||
cameraPermissionHint: string,
|
||||
userInfoPermissionHint: string,
|
||||
locationPermissionHint: string,
|
||||
albumPermissionHint: string
|
||||
}
|
||||
|
||||
export interface ITaskOption extends IInternalBuildOptions {
|
||||
packages: {
|
||||
"cocos-play": PlatformSettings
|
||||
}
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
|
||||
export type logType = 'log' | 'warn' | 'error';
|
||||
export interface IMessageItem {
|
||||
rows: number; // 内部有几行 包括 details & stacks
|
||||
translateY: number;
|
||||
show: boolean;
|
||||
title: string;
|
||||
content: string[]; // details
|
||||
count: number; // 重复的个数
|
||||
fold: boolean; // 折叠
|
||||
type: logType;
|
||||
message: any;
|
||||
texture: string; // 纹理 light or dark
|
||||
date?: number; // 格式化的时间
|
||||
time?: number; // 时间戳
|
||||
process?: string;
|
||||
stack: string[];
|
||||
}
|
||||
|
||||
export interface INewItem {
|
||||
type: logType
|
||||
[propName: string]: any
|
||||
}
|
||||
|
||||
export type ILogCounter = Record<logType, number>;
|
@ -1,684 +0,0 @@
|
||||
export type GlTfId = number;
|
||||
/**
|
||||
* Indices of those attributes that deviate from their initialization value.
|
||||
*/
|
||||
export interface AccessorSparseIndices {
|
||||
/**
|
||||
* The index of the bufferView with sparse indices. Referenced bufferView can't have ARRAY_BUFFER or ELEMENT_ARRAY_BUFFER target.
|
||||
*/
|
||||
"bufferView": GlTfId;
|
||||
/**
|
||||
* The offset relative to the start of the bufferView in bytes. Must be aligned.
|
||||
*/
|
||||
"byteOffset"?: number;
|
||||
/**
|
||||
* The indices data type.
|
||||
*/
|
||||
"componentType": 5121 | 5123 | 5125 | number;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* Array of size `accessor.sparse.count` times number of components storing the displaced accessor attributes pointed by `accessor.sparse.indices`.
|
||||
*/
|
||||
export interface AccessorSparseValues {
|
||||
/**
|
||||
* The index of the bufferView with sparse values. Referenced bufferView can't have ARRAY_BUFFER or ELEMENT_ARRAY_BUFFER target.
|
||||
*/
|
||||
"bufferView": GlTfId;
|
||||
/**
|
||||
* The offset relative to the start of the bufferView in bytes. Must be aligned.
|
||||
*/
|
||||
"byteOffset"?: number;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* Sparse storage of attributes that deviate from their initialization value.
|
||||
*/
|
||||
export interface AccessorSparse {
|
||||
/**
|
||||
* Number of entries stored in the sparse array.
|
||||
*/
|
||||
"count": number;
|
||||
/**
|
||||
* Index array of size `count` that points to those accessor attributes that deviate from their initialization value. Indices must strictly increase.
|
||||
*/
|
||||
"indices": AccessorSparseIndices;
|
||||
/**
|
||||
* Array of size `count` times number of components, storing the displaced accessor attributes pointed by `indices`. Substituted values must have the same `componentType` and number of components as the base accessor.
|
||||
*/
|
||||
"values": AccessorSparseValues;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* A typed view into a bufferView. A bufferView contains raw binary data. An accessor provides a typed view into a bufferView or a subset of a bufferView similar to how WebGL's `vertexAttribPointer()` defines an attribute in a buffer.
|
||||
*/
|
||||
export interface Accessor {
|
||||
/**
|
||||
* The index of the bufferView.
|
||||
*/
|
||||
"bufferView"?: GlTfId;
|
||||
/**
|
||||
* The offset relative to the start of the bufferView in bytes.
|
||||
*/
|
||||
"byteOffset"?: number;
|
||||
/**
|
||||
* The datatype of components in the attribute.
|
||||
*/
|
||||
"componentType": 5120 | 5121 | 5122 | 5123 | 5125 | 5126 | number;
|
||||
/**
|
||||
* Specifies whether integer data values should be normalized.
|
||||
*/
|
||||
"normalized"?: boolean;
|
||||
/**
|
||||
* The number of attributes referenced by this accessor.
|
||||
*/
|
||||
"count": number;
|
||||
/**
|
||||
* Specifies if the attribute is a scalar, vector, or matrix.
|
||||
*/
|
||||
"type": "SCALAR" | "VEC2" | "VEC3" | "VEC4" | "MAT2" | "MAT3" | "MAT4" | string;
|
||||
/**
|
||||
* Maximum value of each component in this attribute.
|
||||
*/
|
||||
"max"?: number[];
|
||||
/**
|
||||
* Minimum value of each component in this attribute.
|
||||
*/
|
||||
"min"?: number[];
|
||||
/**
|
||||
* Sparse storage of attributes that deviate from their initialization value.
|
||||
*/
|
||||
"sparse"?: AccessorSparse;
|
||||
"name"?: any;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* The index of the node and TRS property that an animation channel targets.
|
||||
*/
|
||||
export interface AnimationChannelTarget {
|
||||
/**
|
||||
* The index of the node to target.
|
||||
*/
|
||||
"node"?: GlTfId;
|
||||
/**
|
||||
* The name of the node's TRS property to modify, or the "weights" of the Morph Targets it instantiates. For the "translation" property, the values that are provided by the sampler are the translation along the x, y, and z axes. For the "rotation" property, the values are a quaternion in the order (x, y, z, w), where w is the scalar. For the "scale" property, the values are the scaling factors along the x, y, and z axes.
|
||||
*/
|
||||
"path": "translation" | "rotation" | "scale" | "weights" | string;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* Targets an animation's sampler at a node's property.
|
||||
*/
|
||||
export interface AnimationChannel {
|
||||
/**
|
||||
* The index of a sampler in this animation used to compute the value for the target.
|
||||
*/
|
||||
"sampler": GlTfId;
|
||||
/**
|
||||
* The index of the node and TRS property to target.
|
||||
*/
|
||||
"target": AnimationChannelTarget;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* Combines input and output accessors with an interpolation algorithm to define a keyframe graph (but not its target).
|
||||
*/
|
||||
export interface AnimationSampler {
|
||||
/**
|
||||
* The index of an accessor containing keyframe input values, e.g., time.
|
||||
*/
|
||||
"input": GlTfId;
|
||||
/**
|
||||
* Interpolation algorithm.
|
||||
*/
|
||||
"interpolation"?: "LINEAR" | "STEP" | "CUBICSPLINE" | string;
|
||||
/**
|
||||
* The index of an accessor, containing keyframe output values.
|
||||
*/
|
||||
"output": GlTfId;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* A keyframe animation.
|
||||
*/
|
||||
export interface Animation {
|
||||
/**
|
||||
* An array of channels, each of which targets an animation's sampler at a node's property. Different channels of the same animation can't have equal targets.
|
||||
*/
|
||||
"channels": AnimationChannel[];
|
||||
/**
|
||||
* An array of samplers that combines input and output accessors with an interpolation algorithm to define a keyframe graph (but not its target).
|
||||
*/
|
||||
"samplers": AnimationSampler[];
|
||||
"name"?: any;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* Metadata about the glTF asset.
|
||||
*/
|
||||
export interface Asset {
|
||||
/**
|
||||
* A copyright message suitable for display to credit the content creator.
|
||||
*/
|
||||
"copyright"?: string;
|
||||
/**
|
||||
* Tool that generated this glTF model. Useful for debugging.
|
||||
*/
|
||||
"generator"?: string;
|
||||
/**
|
||||
* The glTF version that this asset targets.
|
||||
*/
|
||||
"version": string;
|
||||
/**
|
||||
* The minimum glTF version that this asset targets.
|
||||
*/
|
||||
"minVersion"?: string;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* A buffer points to binary geometry, animation, or skins.
|
||||
*/
|
||||
export interface Buffer {
|
||||
/**
|
||||
* The uri of the buffer.
|
||||
*/
|
||||
"uri"?: string;
|
||||
/**
|
||||
* The length of the buffer in bytes.
|
||||
*/
|
||||
"byteLength": number;
|
||||
"name"?: any;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* A view into a buffer generally representing a subset of the buffer.
|
||||
*/
|
||||
export interface BufferView {
|
||||
/**
|
||||
* The index of the buffer.
|
||||
*/
|
||||
"buffer": GlTfId;
|
||||
/**
|
||||
* The offset into the buffer in bytes.
|
||||
*/
|
||||
"byteOffset"?: number;
|
||||
/**
|
||||
* The length of the bufferView in bytes.
|
||||
*/
|
||||
"byteLength": number;
|
||||
/**
|
||||
* The stride, in bytes.
|
||||
*/
|
||||
"byteStride"?: number;
|
||||
/**
|
||||
* The target that the GPU buffer should be bound to.
|
||||
*/
|
||||
"target"?: 34962 | 34963 | number;
|
||||
"name"?: any;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* An orthographic camera containing properties to create an orthographic projection matrix.
|
||||
*/
|
||||
export interface CameraOrthographic {
|
||||
/**
|
||||
* The floating-point horizontal magnification of the view. Must not be zero.
|
||||
*/
|
||||
"xmag": number;
|
||||
/**
|
||||
* The floating-point vertical magnification of the view. Must not be zero.
|
||||
*/
|
||||
"ymag": number;
|
||||
/**
|
||||
* The floating-point distance to the far clipping plane. `zfar` must be greater than `znear`.
|
||||
*/
|
||||
"zfar": number;
|
||||
/**
|
||||
* The floating-point distance to the near clipping plane.
|
||||
*/
|
||||
"znear": number;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* A perspective camera containing properties to create a perspective projection matrix.
|
||||
*/
|
||||
export interface CameraPerspective {
|
||||
/**
|
||||
* The floating-point aspect ratio of the field of view.
|
||||
*/
|
||||
"aspectRatio"?: number;
|
||||
/**
|
||||
* The floating-point vertical field of view in radians.
|
||||
*/
|
||||
"yfov": number;
|
||||
/**
|
||||
* The floating-point distance to the far clipping plane.
|
||||
*/
|
||||
"zfar"?: number;
|
||||
/**
|
||||
* The floating-point distance to the near clipping plane.
|
||||
*/
|
||||
"znear": number;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* A camera's projection. A node can reference a camera to apply a transform to place the camera in the scene.
|
||||
*/
|
||||
export interface Camera {
|
||||
/**
|
||||
* An orthographic camera containing properties to create an orthographic projection matrix.
|
||||
*/
|
||||
"orthographic"?: CameraOrthographic;
|
||||
/**
|
||||
* A perspective camera containing properties to create a perspective projection matrix.
|
||||
*/
|
||||
"perspective"?: CameraPerspective;
|
||||
/**
|
||||
* Specifies if the camera uses a perspective or orthographic projection.
|
||||
*/
|
||||
"type": "perspective" | "orthographic" | string;
|
||||
"name"?: any;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* Image data used to create a texture. Image can be referenced by URI or `bufferView` index. `mimeType` is required in the latter case.
|
||||
*/
|
||||
export interface Image {
|
||||
/**
|
||||
* The uri of the image.
|
||||
*/
|
||||
"uri"?: string;
|
||||
/**
|
||||
* The image's MIME type. Required if `bufferView` is defined.
|
||||
*/
|
||||
"mimeType"?: "image/jpeg" | "image/png" | string;
|
||||
/**
|
||||
* The index of the bufferView that contains the image. Use this instead of the image's uri property.
|
||||
*/
|
||||
"bufferView"?: GlTfId;
|
||||
"name"?: any;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* Reference to a texture.
|
||||
*/
|
||||
export interface TextureInfo {
|
||||
/**
|
||||
* The index of the texture.
|
||||
*/
|
||||
"index": GlTfId;
|
||||
/**
|
||||
* The set index of texture's TEXCOORD attribute used for texture coordinate mapping.
|
||||
*/
|
||||
"texCoord"?: number;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* A set of parameter values that are used to define the metallic-roughness material model from Physically-Based Rendering (PBR) methodology.
|
||||
*/
|
||||
export interface MaterialPbrMetallicRoughness {
|
||||
/**
|
||||
* The material's base color factor.
|
||||
*/
|
||||
"baseColorFactor"?: number[];
|
||||
/**
|
||||
* The base color texture.
|
||||
*/
|
||||
"baseColorTexture"?: TextureInfo;
|
||||
/**
|
||||
* The metalness of the material.
|
||||
*/
|
||||
"metallicFactor"?: number;
|
||||
/**
|
||||
* The roughness of the material.
|
||||
*/
|
||||
"roughnessFactor"?: number;
|
||||
/**
|
||||
* The metallic-roughness texture.
|
||||
*/
|
||||
"metallicRoughnessTexture"?: TextureInfo;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
export interface MaterialNormalTextureInfo {
|
||||
"index"?: any;
|
||||
"texCoord"?: any;
|
||||
/**
|
||||
* The scalar multiplier applied to each normal vector of the normal texture.
|
||||
*/
|
||||
"scale"?: number;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
export interface MaterialOcclusionTextureInfo {
|
||||
"index"?: any;
|
||||
"texCoord"?: any;
|
||||
/**
|
||||
* A scalar multiplier controlling the amount of occlusion applied.
|
||||
*/
|
||||
"strength"?: number;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* The material appearance of a primitive.
|
||||
*/
|
||||
export interface Material {
|
||||
"name"?: any;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
/**
|
||||
* A set of parameter values that are used to define the metallic-roughness material model from Physically-Based Rendering (PBR) methodology. When not specified, all the default values of `pbrMetallicRoughness` apply.
|
||||
*/
|
||||
"pbrMetallicRoughness"?: MaterialPbrMetallicRoughness;
|
||||
/**
|
||||
* The normal map texture.
|
||||
*/
|
||||
"normalTexture"?: MaterialNormalTextureInfo;
|
||||
/**
|
||||
* The occlusion map texture.
|
||||
*/
|
||||
"occlusionTexture"?: MaterialOcclusionTextureInfo;
|
||||
/**
|
||||
* The emissive map texture.
|
||||
*/
|
||||
"emissiveTexture"?: TextureInfo;
|
||||
/**
|
||||
* The emissive color of the material.
|
||||
*/
|
||||
"emissiveFactor"?: number[];
|
||||
/**
|
||||
* The alpha rendering mode of the material.
|
||||
*/
|
||||
"alphaMode"?: "OPAQUE" | "MASK" | "BLEND" | string;
|
||||
/**
|
||||
* The alpha cutoff value of the material.
|
||||
*/
|
||||
"alphaCutoff"?: number;
|
||||
/**
|
||||
* Specifies whether the material is double sided.
|
||||
*/
|
||||
"doubleSided"?: boolean;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* Geometry to be rendered with the given material.
|
||||
*/
|
||||
export interface MeshPrimitive {
|
||||
/**
|
||||
* A dictionary object, where each key corresponds to mesh attribute semantic and each value is the index of the accessor containing attribute's data.
|
||||
*/
|
||||
"attributes": {
|
||||
[k: string]: GlTfId;
|
||||
};
|
||||
/**
|
||||
* The index of the accessor that contains the indices.
|
||||
*/
|
||||
"indices"?: GlTfId;
|
||||
/**
|
||||
* The index of the material to apply to this primitive when rendering.
|
||||
*/
|
||||
"material"?: GlTfId;
|
||||
/**
|
||||
* The type of primitives to render.
|
||||
*/
|
||||
"mode"?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | number;
|
||||
/**
|
||||
* An array of Morph Targets, each Morph Target is a dictionary mapping attributes (only `POSITION`, `NORMAL`, and `TANGENT` supported) to their deviations in the Morph Target.
|
||||
*/
|
||||
"targets"?: {
|
||||
[k: string]: GlTfId;
|
||||
}[];
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* A set of primitives to be rendered. A node can contain one mesh. A node's transform places the mesh in the scene.
|
||||
*/
|
||||
export interface Mesh {
|
||||
/**
|
||||
* An array of primitives, each defining geometry to be rendered with a material.
|
||||
*/
|
||||
"primitives": MeshPrimitive[];
|
||||
/**
|
||||
* Array of weights to be applied to the Morph Targets.
|
||||
*/
|
||||
"weights"?: number[];
|
||||
"name"?: any;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* A node in the node hierarchy. When the node contains `skin`, all `mesh.primitives` must contain `JOINTS_0` and `WEIGHTS_0` attributes. A node can have either a `matrix` or any combination of `translation`/`rotation`/`scale` (TRS) properties. TRS properties are converted to matrices and postmultiplied in the `T * R * S` order to compose the transformation matrix; first the scale is applied to the vertices, then the rotation, and then the translation. If none are provided, the transform is the identity. When a node is targeted for animation (referenced by an animation.channel.target), only TRS properties may be present; `matrix` will not be present.
|
||||
*/
|
||||
export interface Node {
|
||||
/**
|
||||
* The index of the camera referenced by this node.
|
||||
*/
|
||||
"camera"?: GlTfId;
|
||||
/**
|
||||
* The indices of this node's children.
|
||||
*/
|
||||
"children"?: GlTfId[];
|
||||
/**
|
||||
* The index of the skin referenced by this node.
|
||||
*/
|
||||
"skin"?: GlTfId;
|
||||
/**
|
||||
* A floating-point 4x4 transformation matrix stored in column-major order.
|
||||
*/
|
||||
"matrix"?: number[];
|
||||
/**
|
||||
* The index of the mesh in this node.
|
||||
*/
|
||||
"mesh"?: GlTfId;
|
||||
/**
|
||||
* The node's unit quaternion rotation in the order (x, y, z, w), where w is the scalar.
|
||||
*/
|
||||
"rotation"?: number[];
|
||||
/**
|
||||
* The node's non-uniform scale, given as the scaling factors along the x, y, and z axes.
|
||||
*/
|
||||
"scale"?: number[];
|
||||
/**
|
||||
* The node's translation along the x, y, and z axes.
|
||||
*/
|
||||
"translation"?: number[];
|
||||
/**
|
||||
* The weights of the instantiated Morph Target. Number of elements must match number of Morph Targets of used mesh.
|
||||
*/
|
||||
"weights"?: number[];
|
||||
"name"?: any;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* Texture sampler properties for filtering and wrapping modes.
|
||||
*/
|
||||
export interface Sampler {
|
||||
/**
|
||||
* Magnification filter.
|
||||
*/
|
||||
"magFilter"?: 9728 | 9729 | number;
|
||||
/**
|
||||
* Minification filter.
|
||||
*/
|
||||
"minFilter"?: 9728 | 9729 | 9984 | 9985 | 9986 | 9987 | number;
|
||||
/**
|
||||
* s wrapping mode.
|
||||
*/
|
||||
"wrapS"?: 33071 | 33648 | 10497 | number;
|
||||
/**
|
||||
* t wrapping mode.
|
||||
*/
|
||||
"wrapT"?: 33071 | 33648 | 10497 | number;
|
||||
"name"?: any;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* The root nodes of a scene.
|
||||
*/
|
||||
export interface Scene {
|
||||
/**
|
||||
* The indices of each root node.
|
||||
*/
|
||||
"nodes"?: GlTfId[];
|
||||
"name"?: any;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* Joints and matrices defining a skin.
|
||||
*/
|
||||
export interface Skin {
|
||||
/**
|
||||
* The index of the accessor containing the floating-point 4x4 inverse-bind matrices. The default is that each matrix is a 4x4 identity matrix, which implies that inverse-bind matrices were pre-applied.
|
||||
*/
|
||||
"inverseBindMatrices"?: GlTfId;
|
||||
/**
|
||||
* The index of the node used as a skeleton root. When undefined, joints transforms resolve to scene root.
|
||||
*/
|
||||
"skeleton"?: GlTfId;
|
||||
/**
|
||||
* Indices of skeleton nodes, used as joints in this skin.
|
||||
*/
|
||||
"joints": GlTfId[];
|
||||
"name"?: any;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* A texture and its sampler.
|
||||
*/
|
||||
export interface Texture {
|
||||
/**
|
||||
* The index of the sampler used by this texture. When undefined, a sampler with repeat wrapping and auto filtering should be used.
|
||||
*/
|
||||
"sampler"?: GlTfId;
|
||||
/**
|
||||
* The index of the image used by this texture.
|
||||
*/
|
||||
"source"?: GlTfId;
|
||||
"name"?: any;
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
||||
/**
|
||||
* The root object for a glTF asset.
|
||||
*/
|
||||
export interface GlTf {
|
||||
/**
|
||||
* Names of glTF extensions used somewhere in this asset.
|
||||
*/
|
||||
"extensionsUsed"?: string[];
|
||||
/**
|
||||
* Names of glTF extensions required to properly load this asset.
|
||||
*/
|
||||
"extensionsRequired"?: string[];
|
||||
/**
|
||||
* An array of accessors.
|
||||
*/
|
||||
"accessors"?: Accessor[];
|
||||
/**
|
||||
* An array of keyframe animations.
|
||||
*/
|
||||
"animations"?: Animation[];
|
||||
/**
|
||||
* Metadata about the glTF asset.
|
||||
*/
|
||||
"asset": Asset;
|
||||
/**
|
||||
* An array of buffers.
|
||||
*/
|
||||
"buffers"?: Buffer[];
|
||||
/**
|
||||
* An array of bufferViews.
|
||||
*/
|
||||
"bufferViews"?: BufferView[];
|
||||
/**
|
||||
* An array of cameras.
|
||||
*/
|
||||
"cameras"?: Camera[];
|
||||
/**
|
||||
* An array of images.
|
||||
*/
|
||||
"images"?: Image[];
|
||||
/**
|
||||
* An array of materials.
|
||||
*/
|
||||
"materials"?: Material[];
|
||||
/**
|
||||
* An array of meshes.
|
||||
*/
|
||||
"meshes"?: Mesh[];
|
||||
/**
|
||||
* An array of nodes.
|
||||
*/
|
||||
"nodes"?: Node[];
|
||||
/**
|
||||
* An array of samplers.
|
||||
*/
|
||||
"samplers"?: Sampler[];
|
||||
/**
|
||||
* The index of the default scene.
|
||||
*/
|
||||
"scene"?: GlTfId;
|
||||
/**
|
||||
* An array of scenes.
|
||||
*/
|
||||
"scenes"?: Scene[];
|
||||
/**
|
||||
* An array of skins.
|
||||
*/
|
||||
"skins"?: Skin[];
|
||||
/**
|
||||
* An array of textures.
|
||||
*/
|
||||
"textures"?: Texture[];
|
||||
"extensions"?: any;
|
||||
"extras"?: any;
|
||||
[k: string]: any;
|
||||
}
|
@ -1,109 +0,0 @@
|
||||
|
||||
declare module 'gltf-validator' {
|
||||
/**
|
||||
* Returns a version string.
|
||||
*/
|
||||
export const version: string;
|
||||
|
||||
/**
|
||||
* Returns an array of supported extensions names.
|
||||
*/
|
||||
export const supportedExtensions: string[];
|
||||
|
||||
/**
|
||||
* @param uri Relative URI of the external resource.
|
||||
* @returns Promise with Uint8Array data.
|
||||
*/
|
||||
export type ExternalResourceFunction = (uri: string) => Promise<Uint8Array>;
|
||||
|
||||
export interface ValidationOptions {
|
||||
/**
|
||||
* Absolute or relative asset URI that will be copied to validation report.
|
||||
*/
|
||||
uri?: string;
|
||||
|
||||
/**
|
||||
* Max number of reported issues. Use 0 for unlimited output.
|
||||
*/
|
||||
maxIssues?: number;
|
||||
|
||||
/**
|
||||
* Array of ignored issue codes.
|
||||
*/
|
||||
ignoredIssues?: string[];
|
||||
|
||||
/**
|
||||
* Object with overridden severities for issue codes.
|
||||
*/
|
||||
severityOverrides?: {
|
||||
[x: string]: number;
|
||||
};
|
||||
|
||||
/**
|
||||
* Function for loading external resources. If omitted, external resources are not validated.
|
||||
*/
|
||||
externalResourceFunction?: ExternalResourceFunction;
|
||||
|
||||
/**
|
||||
* Set to false to skip reading of accessor data.
|
||||
*/
|
||||
validateAccessorData?: boolean;
|
||||
}
|
||||
|
||||
export interface Resource {
|
||||
pointer: string;
|
||||
mimeType: string;
|
||||
storage: string;
|
||||
uri: string;
|
||||
}
|
||||
|
||||
export interface Report {
|
||||
uri: string;
|
||||
mimeType: string;
|
||||
validatorVersion: string;
|
||||
validatedAt: string;
|
||||
issues: {
|
||||
numErrors: number;
|
||||
numWarnings: number;
|
||||
numInfos: number;
|
||||
numHints: number;
|
||||
messages: Array<{
|
||||
code: string;
|
||||
message: string;
|
||||
pointer: string;
|
||||
severity: number;
|
||||
}>;
|
||||
truncated: boolean;
|
||||
};
|
||||
info: {
|
||||
version: string;
|
||||
generator: string;
|
||||
resources: Array<{
|
||||
pointer: string;
|
||||
mimeType: string;
|
||||
storage: string;
|
||||
uri: string;
|
||||
}>;
|
||||
hasAnimations: boolean;
|
||||
hasMaterials: boolean;
|
||||
hasMorphTargets: boolean;
|
||||
hasSkins: boolean;
|
||||
hasTextures: boolean;
|
||||
hasDefaultScene: boolean;
|
||||
primitivesCount: number;
|
||||
maxAttributesUsed: number;
|
||||
};
|
||||
}
|
||||
|
||||
export function validateBytes(data: Uint8Array, options?: ValidationOptions): Promise<Report>;
|
||||
|
||||
export function validateString(json: string, options?: ValidationOptions): Promise<Report>;
|
||||
|
||||
export const enum Severity {
|
||||
Error = 0,
|
||||
|
||||
Warning = 1,
|
||||
|
||||
Information = 2,
|
||||
}
|
||||
}
|
@ -1,811 +0,0 @@
|
||||
declare module "@base/electron-i18n" {
|
||||
export function translation(key: string, language?: any): string;
|
||||
}
|
||||
|
||||
declare interface I18NWellDefinedDictionary {
|
||||
['about.title']: [];
|
||||
['about.editor']: [];
|
||||
['about.engine']: [];
|
||||
['about.version']: [];
|
||||
['animator.title']: [];
|
||||
['animator.loading.wait_scene_ready']: [];
|
||||
['animator.loading.init_animation_data']: [];
|
||||
['animator.mask.need_select_node']: [];
|
||||
['animator.mask.need_animation_component']: [];
|
||||
['animator.mask.need_animation_clip']: [];
|
||||
['animator.mask.enter_animation_mode']: [];
|
||||
['animator.mask.add_animation_component']: [];
|
||||
['animator.mask.add_animation_clip']: [];
|
||||
['animator.toolbar.exit']: [];
|
||||
['animator.toolbar.setting']: [];
|
||||
['animator.toolbar.order']: [];
|
||||
['animator.toolbar.jump_first_frame']: [];
|
||||
['animator.toolbar.jump_prev_frame']: [];
|
||||
['animator.toolbar.play_animation']: [];
|
||||
['animator.toolbar.stop_animation']: [];
|
||||
['animator.toolbar.pause_animation']: [];
|
||||
['animator.toolbar.jump_next_frame']: [];
|
||||
['animator.toolbar.jump_last_frame']: [];
|
||||
['animator.toolbar.insert_event']: [];
|
||||
['animator.toolbar.save_clip']: [];
|
||||
['animator.property.title']: [];
|
||||
['animator.property.create_prop']: [];
|
||||
['animator.property.remove_prop']: [];
|
||||
['animator.property.clear_keys']: [];
|
||||
['animator.property.create_key']: [];
|
||||
['animator.property.remove_key']: [];
|
||||
['animator.property.copy_key']: [];
|
||||
['animator.property.paste_key']: [];
|
||||
['animator.property.spacing_key']: [];
|
||||
['animator.property.spacing_frame']: [];
|
||||
['animator.event.title']: [];
|
||||
['animator.event.add_func']: [];
|
||||
['animator.event.del_func']: [];
|
||||
['animator.event.add_params']: [];
|
||||
['animator.event.del_params']: [];
|
||||
['animator.event.clear_params']: [];
|
||||
['animator.event.create']: [];
|
||||
['animator.event.paste']: [];
|
||||
['animator.bezier.title']: [];
|
||||
['animator.bezier.click_to_apply']: [];
|
||||
['animator.node.title']: [];
|
||||
['animator.node.move_data']: [];
|
||||
['animator.node.move_data_to']: [];
|
||||
['animator.node.clear_data']: [];
|
||||
['animator.preview_row.line_tips']: [];
|
||||
['animator.preview_row.open_curve_editor']: [];
|
||||
['animator.preview_row.asset_type_should_be']: [];
|
||||
['animator.preview_row.asset_position_tips']: [];
|
||||
['animator.is_save']: [];
|
||||
['animator.is_save_message']: [];
|
||||
['animator.is_paste_overwrite']: [];
|
||||
['animator.is_paste_overwrite_message']: [];
|
||||
['animator.overwrite']: [];
|
||||
['animator.is_clear']: [];
|
||||
['animator.is_clear_message']: [];
|
||||
['animator.is_move_data']: [];
|
||||
['animator.is_move_data_message']: [];
|
||||
['animator.is_remove_prop.title']: [];
|
||||
['animator.is_remove_prop.message']: [];
|
||||
['animator.is_remove_prop.remove']: [];
|
||||
['animator.is_clear_prop.title']: [];
|
||||
['animator.is_clear_prop.message']: [];
|
||||
['animator.is_clear_prop.remove']: [];
|
||||
['animator.move']: [];
|
||||
['animator.clear']: [];
|
||||
['animator.copy']: [];
|
||||
['animator.paste']: [];
|
||||
['animator.save']: [];
|
||||
['animator.abort']: [];
|
||||
['animator.cancel']: [];
|
||||
['animator.edit']: [];
|
||||
['animator.delete']: [];
|
||||
['animator.toolbar.spacing_frame']: [];
|
||||
['asset-db.mask.startup']: [];
|
||||
['asset-db.mask.loading']: [];
|
||||
['asset-db.debug-mode']: [];
|
||||
['asset-db.operate.dialogError']: [];
|
||||
['asset-db.operate.dialogWarning']: [];
|
||||
['asset-db.operate.dialogQuestion']: [];
|
||||
['asset-db.operate.dialogInfo']: [];
|
||||
['asset-db.fail.readonly']: [];
|
||||
['asset-db.createAsset.fail.unknown']: [];
|
||||
['asset-db.createAsset.fail.url']: [];
|
||||
['asset-db.createAsset.fail.exist']: [];
|
||||
['asset-db.createAsset.fail.drop']: [];
|
||||
['asset-db.createAsset.fail.toUrl']: [];
|
||||
['asset-db.createAsset.fail.uuid']: [];
|
||||
['asset-db.createAsset.fail.content']: [];
|
||||
['asset-db.createAsset.fail.readonly']: [];
|
||||
['asset-db.createAsset.warn.overwrite']: [];
|
||||
['asset-db.dropAsset.overwrite']: [];
|
||||
['asset-db.dropAsset.reserve']: [];
|
||||
['asset-db.dropAsset.fail.unknown']: [];
|
||||
['asset-db.dropAsset.fail.url']: [];
|
||||
['asset-db.dropAsset.fail.filepaths']: [];
|
||||
['asset-db.dropAsset.fail.readonly']: [];
|
||||
['asset-db.dropAsset.warn.overwrite']: [];
|
||||
['asset-db.dropAsset.warn.sameway']: [];
|
||||
['asset-db.saveAsset.fail.unknown']: [];
|
||||
['asset-db.saveAsset.fail.uuid']: [];
|
||||
['asset-db.saveAsset.fail.content']: [];
|
||||
['asset-db.saveAsset.fail.readonly']: [];
|
||||
['asset-db.saveAssetMeta.fail.unknown']: [];
|
||||
['asset-db.saveAssetMeta.fail.uuid']: [];
|
||||
['asset-db.saveAssetMeta.fail.content']: [];
|
||||
['asset-db.saveAssetMeta.fail.readonly']: [];
|
||||
['asset-db.copyAsset.fail.unknown']: [];
|
||||
['asset-db.copyAsset.fail.url']: [];
|
||||
['asset-db.copyAsset.fail.source']: [];
|
||||
['asset-db.copyAsset.fail.target']: [];
|
||||
['asset-db.copyAsset.fail.include']: [];
|
||||
['asset-db.copyAsset.fail.parent']: [];
|
||||
['asset-db.copyAsset.fail.readonly']: [];
|
||||
['asset-db.copyAsset.fail.metauuid']: [];
|
||||
['asset-db.moveAsset.fail.unknown']: [];
|
||||
['asset-db.moveAsset.fail.url']: [];
|
||||
['asset-db.moveAsset.fail.source']: [];
|
||||
['asset-db.moveAsset.fail.target']: [];
|
||||
['asset-db.moveAsset.fail.exist']: [];
|
||||
['asset-db.moveAsset.fail.include']: [];
|
||||
['asset-db.moveAsset.fail.parent']: [];
|
||||
['asset-db.moveAsset.fail.readonly_source']: [];
|
||||
['asset-db.moveAsset.fail.readonly']: [];
|
||||
['asset-db.moveAsset.warn.overwrite']: [];
|
||||
['asset-db.deleteAsset.fail.unknown']: [];
|
||||
['asset-db.deleteAsset.fail.url']: [];
|
||||
['asset-db.deleteAsset.fail.unexist']: [];
|
||||
['asset-db.deleteAsset.fail.readonly']: [];
|
||||
['asset-db.preferences.log_level']: [];
|
||||
['asset-db.preferences.log_level_debug']: [];
|
||||
['asset-db.preferences.log_level_log']: [];
|
||||
['asset-db.preferences.log_level_warn']: [];
|
||||
['asset-db.preferences.log_level_error']: [];
|
||||
['asset-db.importers.glTF.glTF_asset_group_mesh']: [];
|
||||
['asset-db.importers.glTF.glTF_asset_group_animation']: [];
|
||||
['asset-db.importers.glTF.glTF_asset_group_node']: [];
|
||||
['asset-db.importers.glTF.glTF_asset_group_skin']: [];
|
||||
['asset-db.importers.glTF.glTF_asset_group_sampler']: [];
|
||||
['asset-db.importers.glTF.glTF_asset']: [{
|
||||
group: any;
|
||||
index: any;
|
||||
name: any;
|
||||
}];
|
||||
['asset-db.importers.glTF.glTF_asset_no_name']: [{
|
||||
group: any;
|
||||
index: any;
|
||||
}];
|
||||
['asset-db.importers.glTF.unsupported_alpha_mode']: [{
|
||||
material: any;
|
||||
mode: any;
|
||||
}];
|
||||
['asset-db.importers.glTF.unsupported_texture_parameter']: [{
|
||||
texture: any;
|
||||
sampler: any;
|
||||
type: any;
|
||||
value: any;
|
||||
}];
|
||||
['asset-db.importers.glTF.texture_parameter_min_filter']: [];
|
||||
['asset-db.importers.glTF.texture_parameter_mag_filter']: [];
|
||||
['asset-db.importers.glTF.unsupported_channel_path']: [{
|
||||
animation: any;
|
||||
channel: any;
|
||||
path: any;
|
||||
}];
|
||||
['asset-db.importers.glTF.reference_skin_in_different_scene']: [{
|
||||
node: any;
|
||||
skin: any;
|
||||
}];
|
||||
['asset-db.importers.glTF.disallow_cubic_spline_channel_split']: [{
|
||||
animation: any;
|
||||
channel: any;
|
||||
}];
|
||||
['asset-db.importers.glTF.failed_to_calculate_tangents_due_to_lack_of_normals']: [{
|
||||
mesh: any;
|
||||
primitive: any;
|
||||
}];
|
||||
['asset-db.importers.glTF.failed_to_calculate_tangents_due_to_lack_of_uvs']: [{
|
||||
mesh: any;
|
||||
primitive: any;
|
||||
}];
|
||||
['asset-db.importers.glTF.failed_to_load_image']: [{
|
||||
url: any;
|
||||
reason: any;
|
||||
}];
|
||||
['asset-db.importers.glTF.image_uri_should_be_file_url']: [];
|
||||
['asset-db.importers.glTF.failed_to_convert_tga']: [];
|
||||
['asset-db.importers.fbx.failed_to_convert_fbx_file']: [{
|
||||
path: any;
|
||||
}];
|
||||
['asset-db.importers.fbx.no_available_fbx_temp_dir']: [];
|
||||
['asset-db.importers.fbx.fbx2glTF_exists_with_non_zero_code']: [{
|
||||
code: any;
|
||||
output: any;
|
||||
}];
|
||||
['asset-db.importers.javascript.transform_failure']: [{
|
||||
path: any;
|
||||
reason: any;
|
||||
}];
|
||||
['assets.title']: [];
|
||||
['assets.previewTitle']: [];
|
||||
['assets.menu.createMenu']: [];
|
||||
['assets.menu.searchPlaceholder_name']: [];
|
||||
['assets.menu.searchPlaceholder_uuid']: [];
|
||||
['assets.menu.searchPlaceholder_type']: [];
|
||||
['assets.menu.searchTip']: [];
|
||||
['assets.menu.search']: [];
|
||||
['assets.menu.searchName']: [];
|
||||
['assets.menu.searchUuid']: [];
|
||||
['assets.menu.searchType']: [];
|
||||
['assets.menu.sort']: [];
|
||||
['assets.menu.sortName']: [];
|
||||
['assets.menu.sortType']: [];
|
||||
['assets.menu.refresh']: [];
|
||||
['assets.menu.allExpand']: [];
|
||||
['assets.menu.allCollapse']: [];
|
||||
['assets.menu.new']: [];
|
||||
['assets.menu.newFolder']: [];
|
||||
['assets.menu.newJavaScript']: [];
|
||||
['assets.menu.newTypeScript']: [];
|
||||
['assets.menu.newCubeMap']: [];
|
||||
['assets.menu.newScene']: [];
|
||||
['assets.menu.newMaterial']: [];
|
||||
['assets.menu.newPhysicsMaterial']: [];
|
||||
['assets.menu.newEffect']: [];
|
||||
['assets.menu.newChunk']: [];
|
||||
['assets.menu.newAnimation']: [];
|
||||
['assets.menu.renderPipeline']: [];
|
||||
['assets.menu.forwardPipeline']: [];
|
||||
['assets.menu.renderPipelineTS']: [];
|
||||
['assets.menu.RenderFlowTS']: [];
|
||||
['assets.menu.RenderStageTS']: [];
|
||||
['assets.menu.newPac']: [];
|
||||
['assets.menu.newTerrain']: [];
|
||||
['assets.menu.copy']: [];
|
||||
['assets.menu.cut']: [];
|
||||
['assets.menu.paste']: [];
|
||||
['assets.menu.delete']: [];
|
||||
['assets.menu.rename']: [];
|
||||
['assets.menu.selectall']: [];
|
||||
['assets.menu.readonly']: [];
|
||||
['assets.menu.revealInlibrary']: [];
|
||||
['assets.menu.reimport']: [];
|
||||
['assets.menu.revealInExplorer']: [];
|
||||
['assets.menu.showUuid']: [];
|
||||
['assets.menu.recommendTS']: [];
|
||||
['assets.operate.cutReady']: [];
|
||||
['assets.operate.cutDone']: [];
|
||||
['assets.operate.copyReady']: [];
|
||||
['assets.operate.copyDone']: [];
|
||||
['assets.operate.dialogError']: [];
|
||||
['assets.operate.dialogWarning']: [];
|
||||
['assets.operate.dialogQuestion']: [];
|
||||
['assets.operate.dialogInfo']: [];
|
||||
['assets.operate.refreshing']: [];
|
||||
['assets.operate.assetDataError']: [];
|
||||
['assets.operate.sureDelete']: [{
|
||||
length: any;
|
||||
filelist: any;
|
||||
}];
|
||||
['assets.operate.renameFail']: [];
|
||||
['assets.operate.pasteFail_parent_into_child']: [];
|
||||
['assets.operate.refreshFail']: [];
|
||||
['assets.operate.readDefaultFileFail']: [];
|
||||
['assets.operate.errorNewnameDuplicate']: [];
|
||||
['assets.operate.errorNewnameUnlegal']: [];
|
||||
['assets.operate.errorNewnameEmpty']: [];
|
||||
['assets.operate.errorScriptName']: [];
|
||||
['assets.operate.errorScriptClassName']: [];
|
||||
['assets.deprecate.fire']: [];
|
||||
['builder.title']: [];
|
||||
['builder.create_user_template']: [];
|
||||
['builder.build_config']: [];
|
||||
['builder.build']: [];
|
||||
['builder.compile']: [];
|
||||
['builder.select_all']: [];
|
||||
['builder.open_compile_file']: [];
|
||||
['builder.source_map']: [];
|
||||
['builder.recompile_engine']: [];
|
||||
['builder.debug_mode']: [];
|
||||
['builder.web_debugger']: [];
|
||||
['builder.require']: [];
|
||||
['builder.new_build_task']: [];
|
||||
['builder.empty_task_holder']: [];
|
||||
['builder.empty_scene']: [];
|
||||
['builder.reveal_in_explorer']: [];
|
||||
['builder.view_build_config']: [];
|
||||
['builder.recompile']: [];
|
||||
['builder.compress_texture']: [];
|
||||
['builder.pack_autoAtlas']: [];
|
||||
['builder.replace_splash_screen']: [];
|
||||
['builder.run']: [];
|
||||
['builder.open']: [];
|
||||
['builder.export']: [];
|
||||
['builder.import']: [];
|
||||
['builder.export_build_config']: [];
|
||||
['builder.import_build_config']: [];
|
||||
['builder.include_project_setting']: [];
|
||||
['builder.only_build_panel']: [];
|
||||
['builder.options.taskName']: [];
|
||||
['builder.options.name']: [];
|
||||
['builder.options.platform']: [];
|
||||
['builder.options.build_path']: [];
|
||||
['builder.options.start_scene']: [];
|
||||
['builder.options.inline_SpriteFrames']: [];
|
||||
['builder.options.merge_json_by_scene']: [];
|
||||
['builder.options.merge_start_scene']: [];
|
||||
['builder.options.orientation']: [];
|
||||
['builder.options.scenes']: [];
|
||||
['builder.options.debug']: [];
|
||||
['builder.options.resolution']: [];
|
||||
['builder.options.preview_url']: [];
|
||||
['builder.options.source_map']: [];
|
||||
['builder.options.force_combile_engine']: [];
|
||||
['builder.options.web_debugger']: [];
|
||||
['builder.options.compress_texture']: [];
|
||||
['builder.options.pack_autoAtlas']: [];
|
||||
['builder.package']: [];
|
||||
['builder.package_hint']: [];
|
||||
['builder.desktop_icon']: [];
|
||||
['builder.desktop_icon_hint']: [];
|
||||
['builder.version_name']: [];
|
||||
['builder.version_name_hint']: [];
|
||||
['builder.version_number']: [];
|
||||
['builder.version_number_hint']: [];
|
||||
['builder.support_min_platform']: [];
|
||||
['builder.support_min_platform_hint']: [];
|
||||
['builder.full_screen']: [];
|
||||
['builder.screen_orientation']: [];
|
||||
['builder.landscape']: [];
|
||||
['builder.portrait']: [];
|
||||
['builder.tiny_packet_mode']: [];
|
||||
['builder.tiny_packet_path']: [];
|
||||
['builder.tiny_packet_path_hint']: [];
|
||||
['builder.keystore']: [];
|
||||
['builder.use_debug_keystore']: [];
|
||||
['builder.private_pem_path']: [];
|
||||
['builder.private_pem_path_hint']: [];
|
||||
['builder.certificate_pem_path']: [];
|
||||
['builder.certificate_pem_path_hint']: [];
|
||||
['builder.print_finger']: [];
|
||||
['builder.pack_res_to_first_pack']: [];
|
||||
['builder.custom_npm_path']: [];
|
||||
['builder.custom_npm_path_hint']: [];
|
||||
['builder.custom_manifest_data']: [];
|
||||
['builder.custom_manifest_data_error']: [];
|
||||
['builder.remote_url']: [];
|
||||
['builder.not_install_nodejs_windows_error']: [];
|
||||
['builder.not_install_nodejs_mac_error']: [];
|
||||
['builder.rpk_installing']: [];
|
||||
['builder.rpk_install_fail']: [];
|
||||
['builder.rpk_install_success']: [];
|
||||
['builder.not_mainfest_data']: [];
|
||||
['builder.npm_installed_success']: [];
|
||||
['builder.npm_install_fail']: [];
|
||||
['builder.oppo.new']: [];
|
||||
['builder.oppo.not_empty']: [];
|
||||
['builder.oppo.icon_not_exist']: [];
|
||||
['builder.oppo.signature_not_exist']: [];
|
||||
['builder.oppo.private_pem_path_error']: [];
|
||||
['builder.oppo.certificate_pem_path_error']: [];
|
||||
['builder.certificate.country']: [];
|
||||
['builder.certificate.state']: [];
|
||||
['builder.certificate.locality']: [];
|
||||
['builder.certificate.organization']: [];
|
||||
['builder.certificate.organizationalUnit']: [];
|
||||
['builder.certificate.commonName']: [];
|
||||
['builder.certificate.email']: [];
|
||||
['builder.certificate.certificatePath']: [];
|
||||
['builder.certificate.generate']: [];
|
||||
['builder.certificate.build_certificate_complete']: [];
|
||||
['builder.certificate.build_certificate_fail']: [];
|
||||
['builder.huawei.select_certificate_path']: [];
|
||||
['builder.huawei.install_nodejs_before_view_certificate']: [];
|
||||
['builder.huawei.select_certificate_path_after_view_certificate']: [];
|
||||
['builder.huawei.certificate_fingerprint']: [];
|
||||
['builder.huawei.certificate_fingerprint_error']: [];
|
||||
['builder.huawei.use_native_renderer']: [];
|
||||
['builder.wechat_game.separate_engine']: [];
|
||||
['builder.wechat_game.separate_engine_tips']: [];
|
||||
['builder.wechat_game.client_path_error']: [{
|
||||
path: any;
|
||||
}];
|
||||
['builder.wechat_game.client_info_path_err']: [{
|
||||
path: any;
|
||||
}];
|
||||
['builder.wechat_game.client_version_low']: [];
|
||||
['builder.wechat_game.remote_server_address']: [];
|
||||
['builder.wechat_game.remote_server_address_tips']: [];
|
||||
['builder.wechat_game.sub_context']: [];
|
||||
['builder.wechat_game.sub_context_tips']: [];
|
||||
['builder.wechat_game.build_sub']: [];
|
||||
['builder.wechat_game.build_sub_tips']: [];
|
||||
['builder.wechat_game.wechatgame_app_path_empty']: [];
|
||||
['builder.error.build_error']: [];
|
||||
['builder.error.dirty_info']: [];
|
||||
['builder.error.build_dir_not_exists']: [{
|
||||
buildDir: any;
|
||||
}];
|
||||
['builder.error.build_path_contains_space']: [];
|
||||
['builder.error.build_path_contains_chinese']: [];
|
||||
['builder.error.can_not_empty']: [];
|
||||
['builder.error.project_name_not_legal']: [];
|
||||
['builder.error.package_name_not_legal']: [];
|
||||
['builder.error.package_name_start_with_number']: [];
|
||||
['builder.error.select_scenes_to_build']: [];
|
||||
['builder.error.binary_api_level']: [];
|
||||
['builder.error.path_too_long_title']: [];
|
||||
['builder.error.path_too_long_desc']: [{
|
||||
max_length: any;
|
||||
}];
|
||||
['builder.error.keep_raw_texture_of_atlas']: [{
|
||||
texturePath: any;
|
||||
pacPath: any;
|
||||
assetPath: any;
|
||||
}];
|
||||
['builder.error.arm64_not_support']: [{
|
||||
current_api: any;
|
||||
min_version: any;
|
||||
}];
|
||||
['builder.warn.same_url']: [];
|
||||
['builder.tasks.build_asset']: [];
|
||||
['builder.tasks.build_engine']: [];
|
||||
['builder.tasks.build_img']: [];
|
||||
['builder.tasks.build_json']: [];
|
||||
['builder.tasks.build_atlas']: [];
|
||||
['builder.tasks.build_script']: [];
|
||||
['builder.tasks.build_suffix']: [];
|
||||
['builder.tasks.build_template']: [];
|
||||
['builder.tasks.load_script']: [];
|
||||
['builder.tasks.sort_asset']: [];
|
||||
['builder.tasks.sort_image']: [];
|
||||
['builder.tasks.sort_script']: [];
|
||||
['builder.tasks.sort_sprite_frame']: [];
|
||||
['builder.tasks.sort_texture']: [];
|
||||
['builder.tasks.sort_json']: [];
|
||||
['builder.tasks.settings.compress']: [];
|
||||
['builder.tasks.settings.design_resolution']: [];
|
||||
['builder.tasks.settings.group']: [];
|
||||
['builder.tasks.settings.md5']: [];
|
||||
['builder.tasks.settings.scene']: [];
|
||||
['builder.tasks.settings.script']: [];
|
||||
['builder.tips.enter_name']: [];
|
||||
['builder.tips.taskName']: [];
|
||||
['builder.tips.build_path']: [];
|
||||
['builder.tips.build_scenes']: [];
|
||||
['builder.tips.inline_SpriteFrames']: [];
|
||||
['builder.tips.md5Cache']: [];
|
||||
['builder.tips.merge_start_scene']: [];
|
||||
['builder.tips.debug']: [];
|
||||
['builder.tips.resolution']: [];
|
||||
['builder.tips.web_debugger']: [];
|
||||
['builder.tips.creat_template_success']: [];
|
||||
['builder.tips.set_start_scene']: [];
|
||||
['builder.splash_setting.title']: [];
|
||||
['builder.splash_setting.drag_img_here']: [];
|
||||
['builder.splash_setting.img_loading']: [];
|
||||
['builder.splash_setting.confirm']: [];
|
||||
['builder.splash_setting.settings.total_time']: [];
|
||||
['builder.splash_setting.settings.display_ratio']: [];
|
||||
['builder.splash_setting.settings.clear_color']: [];
|
||||
['builder.splash_setting.settings.effect']: [];
|
||||
['builder.splash_setting.settings.display_watermark']: [];
|
||||
['builder.splash_setting.is_save_dialog.title']: [];
|
||||
['builder.splash_setting.is_save_dialog.save']: [];
|
||||
['builder.splash_setting.is_save_dialog.cancel']: [];
|
||||
['builder.splash_setting.is_save_dialog.abort']: [];
|
||||
['builder.is_remove_task.title']: [];
|
||||
['builder.is_remove_task.has_building_task']: [];
|
||||
['builder.is_remove_task.message']: [];
|
||||
['builder.is_remove_task.remove']: [];
|
||||
['builder.is_remove_task.deep_remove']: [];
|
||||
['builder.is_remove_task.cancel']: [];
|
||||
['builder.is_stop_build.title']: [];
|
||||
['builder.is_stop_build.message']: [];
|
||||
['builder.is_stop_build.stop']: [];
|
||||
['builder.is_stop_build.cancel']: [];
|
||||
['builder.is_close_win.title']: [];
|
||||
['builder.is_close_win.message']: [];
|
||||
['builder.is_close_win.force_close']: [];
|
||||
['builder.is_close_win.cancel']: [];
|
||||
['builder.is_save_scene.title']: [];
|
||||
['builder.is_save_scene.message']: [];
|
||||
['builder.is_save_scene.save']: [];
|
||||
['builder.is_save_scene.ignore']: [];
|
||||
['builder.is_save_scene.cancel']: [];
|
||||
['builder.merge_json_by_scene']: [];
|
||||
['builder.not_require']: [];
|
||||
['builder.options.open_compile_file']: [];
|
||||
['builder.custom_manifest_file_path']: [];
|
||||
['builder.custom_manifest_file_path_hint']: [];
|
||||
['builder.install_nodejs_before_view_certificate']: [];
|
||||
['builder.window_default_npm_path_error']: [];
|
||||
['builder.mac_default_npm_path_error']: [];
|
||||
['builder.oppo.package_name_error']: [];
|
||||
['builder.huawei.certificate_fingerprint_window_error']: [];
|
||||
['builder.huawei.certificate_fingerprint_mac_error']: [];
|
||||
['console.title']: [];
|
||||
['console.editorLog']: [];
|
||||
['console.cocosLog']: [];
|
||||
['console.tabbar.regex']: [];
|
||||
['console.preferences.display_date']: [];
|
||||
['console.preferences.font_size']: [];
|
||||
['console.preferences.line_height']: [];
|
||||
['engine.title']: [];
|
||||
['engine.compile_engine']: [];
|
||||
['engine.wait_quick_compile']: [];
|
||||
['engine.confirm']: [];
|
||||
['engine.browse']: [];
|
||||
['engine.open']: [];
|
||||
['engine.engine_directory_illegal']: [];
|
||||
['engine.engine_compile_failed']: [];
|
||||
['engine.engine_compile_crash']: [];
|
||||
['engine.javascript_engine']: [];
|
||||
['engine.use_builtin_engine']: [];
|
||||
['engine.custom_engine_path']: [];
|
||||
['engine.QUICK_COMPILER.engine_modified_info']: [];
|
||||
['engine.resources_docs_1']: [];
|
||||
['engine.resources_docs_2']: [];
|
||||
['engine.resources_docs_3']: [];
|
||||
['engine.resources_docs_4']: [];
|
||||
['hierarchy.title']: [];
|
||||
['hierarchy.menu.createMenu']: [];
|
||||
['hierarchy.menu.searchPlaceholder']: [];
|
||||
['hierarchy.menu.searchPlaceholder_name']: [];
|
||||
['hierarchy.menu.searchPlaceholder_uuid']: [];
|
||||
['hierarchy.menu.searchPlaceholder_component']: [];
|
||||
['hierarchy.menu.searchTip']: [];
|
||||
['hierarchy.menu.search']: [];
|
||||
['hierarchy.menu.searchName']: [];
|
||||
['hierarchy.menu.searchUuid']: [];
|
||||
['hierarchy.menu.searchComponent']: [];
|
||||
['hierarchy.menu.refresh']: [];
|
||||
['hierarchy.menu.allExpand']: [];
|
||||
['hierarchy.menu.allCollapse']: [];
|
||||
['hierarchy.menu.newNode']: [];
|
||||
['hierarchy.menu.newNodeEmpty']: [];
|
||||
['hierarchy.menu.new3dObject']: [];
|
||||
['hierarchy.menu.new3dCube']: [];
|
||||
['hierarchy.menu.new3dCylinder']: [];
|
||||
['hierarchy.menu.new3dSphere']: [];
|
||||
['hierarchy.menu.new3dCapsule']: [];
|
||||
['hierarchy.menu.new3dCone']: [];
|
||||
['hierarchy.menu.new3dTorus']: [];
|
||||
['hierarchy.menu.new3dPlane']: [];
|
||||
['hierarchy.menu.new3dQuad']: [];
|
||||
['hierarchy.menu.newLightObject']: [];
|
||||
['hierarchy.menu.newLightDirectional']: [];
|
||||
['hierarchy.menu.newLightSphere']: [];
|
||||
['hierarchy.menu.newLightSpot']: [];
|
||||
['hierarchy.menu.newCameraObject']: [];
|
||||
['hierarchy.menu.newTerrain']: [];
|
||||
['hierarchy.menu.newEffects']: [];
|
||||
['hierarchy.menu.newEffectsParticle']: [];
|
||||
['hierarchy.menu.newUI']: [];
|
||||
['hierarchy.menu.newUICanvas']: [];
|
||||
['hierarchy.menu.newUISprite']: [];
|
||||
['hierarchy.menu.newUILabel']: [];
|
||||
['hierarchy.menu.newUIButton']: [];
|
||||
['hierarchy.menu.newUIToggle']: [];
|
||||
['hierarchy.menu.newUIToggleGroup']: [];
|
||||
['hierarchy.menu.newUISlider']: [];
|
||||
['hierarchy.menu.newUIProgressBar']: [];
|
||||
['hierarchy.menu.newUIWidget']: [];
|
||||
['hierarchy.menu.newUIEditBox']: [];
|
||||
['hierarchy.menu.newUILayout']: [];
|
||||
['hierarchy.menu.newUIScrollView']: [];
|
||||
['hierarchy.menu.newUIMask']: [];
|
||||
['hierarchy.menu.copy']: [];
|
||||
['hierarchy.menu.cut']: [];
|
||||
['hierarchy.menu.paste']: [];
|
||||
['hierarchy.menu.delete']: [];
|
||||
['hierarchy.menu.rename']: [];
|
||||
['hierarchy.menu.duplicate']: [];
|
||||
['hierarchy.menu.showUuid']: [];
|
||||
['hierarchy.menu.link_prefab']: [];
|
||||
['hierarchy.menu.link_prefab_error_node_empty']: [];
|
||||
['hierarchy.menu.link_prefab_error_node_isScene']: [];
|
||||
['hierarchy.menu.link_prefab_error_asset_empty']: [];
|
||||
['hierarchy.menu.link_prefab_error_asset_invalid']: [];
|
||||
['hierarchy.menu.link_prefab_make_sure']: [];
|
||||
['hierarchy.menu.unlink_prefab']: [];
|
||||
['hierarchy.menu.unlink_prefab_error_prefab_empty']: [];
|
||||
['hierarchy.menu.errorNewnameEmpty']: [];
|
||||
['hierarchy.operate.cutReady']: [];
|
||||
['hierarchy.operate.cutDone']: [];
|
||||
['hierarchy.operate.copyReady']: [];
|
||||
['hierarchy.operate.copyDone']: [];
|
||||
['hierarchy.operate.duplicateDone']: [];
|
||||
['hierarchy.operate.dialogError']: [];
|
||||
['hierarchy.operate.dialogWarning']: [];
|
||||
['hierarchy.operate.dialogQuestion']: [];
|
||||
['hierarchy.operate.dialogInfo']: [];
|
||||
['hierarchy.operate.renameFail']: [];
|
||||
['inspector.title']: [];
|
||||
['inspector.add_component']: [];
|
||||
['inspector.lock_unlock']: [];
|
||||
['inspector.backward_selection']: [];
|
||||
['inspector.forward_selection']: [];
|
||||
['inspector.menu.remove_component']: [];
|
||||
['inspector.menu.move_up_component']: [];
|
||||
['inspector.menu.move_down_component']: [];
|
||||
['inspector.menu.copy_node_value']: [];
|
||||
['inspector.menu.paste_node_value']: [];
|
||||
['inspector.menu.copy_component']: [];
|
||||
['inspector.menu.paste_component']: [];
|
||||
['inspector.menu.paste_component_values']: [];
|
||||
['inspector.asset.directory.is_subpackage']: [];
|
||||
['inspector.asset.directory.subpackage_name']: [];
|
||||
['inspector.asset.javascript.plugin']: [];
|
||||
['inspector.asset.javascript.loadPluginInWeb']: [];
|
||||
['inspector.asset.javascript.loadPluginInEditor']: [];
|
||||
['inspector.asset.javascript.loadPluginInNative']: [];
|
||||
['inspector.asset.fbx.browse']: [];
|
||||
['inspector.asset.spriteFrame.edit']: [];
|
||||
['inspector.asset.texture.modeWarn']: [];
|
||||
['inspector.node.layer.confirm_message']: [];
|
||||
['inspector.node.layer.change_children']: [];
|
||||
['inspector.node.layer.change_self']: [];
|
||||
['inspector.gradient.title']: [];
|
||||
['inspector.curve_editor.title']: [];
|
||||
['inspector.sprite_editor.title']: [];
|
||||
['inspector.sprite_editor.scale']: [];
|
||||
['inspector.sprite_editor.reset']: [];
|
||||
['inspector.sprite_editor.save']: [];
|
||||
['inspector.sprite_editor.saveError']: [];
|
||||
['inspector.sprite_editor.border']: [];
|
||||
['inspector.sprite_editor.left']: [];
|
||||
['inspector.sprite_editor.right']: [];
|
||||
['inspector.sprite_editor.top']: [];
|
||||
['inspector.sprite_editor.bottom']: [];
|
||||
['inspector.check_is_saved.message']: [];
|
||||
['inspector.check_is_saved.save']: [];
|
||||
['inspector.check_is_saved.abort']: [];
|
||||
['inspector.prefab.local']: [];
|
||||
['inspector.prefab.reset']: [];
|
||||
['inspector.prefab.save']: [];
|
||||
['inspector.prefab.link']: [];
|
||||
['inspector.prefab.unlink']: [];
|
||||
['inspector.prefab.lost']: [];
|
||||
['inspector.prefab.exist']: [];
|
||||
['packager.title']: [];
|
||||
['packager.menu.internal']: [];
|
||||
['packager.menu.project']: [];
|
||||
['packager.menu.global']: [];
|
||||
['packager.menu.add']: [];
|
||||
['packager.menu.addProject']: [];
|
||||
['packager.menu.addGlobal']: [];
|
||||
['packager.menu.addLabel']: [];
|
||||
['packager.menu.addSuccess']: [];
|
||||
['packager.menu.import']: [];
|
||||
['packager.menu.importProject']: [];
|
||||
['packager.menu.importGlobal']: [];
|
||||
['packager.menu.importSuccess']: [];
|
||||
['packager.menu.install']: [];
|
||||
['packager.menu.installProject']: [];
|
||||
['packager.menu.installGlobal']: [];
|
||||
['packager.menu.installSuccess']: [];
|
||||
['packager.menu.selectDirectory']: [];
|
||||
['packager.menu.search']: [];
|
||||
['packager.menu.openFolder']: [];
|
||||
['packager.menu.author']: [];
|
||||
['packager.menu.state']: [];
|
||||
['packager.menu.remove']: [];
|
||||
['packager.menu.removeSuccess']: [];
|
||||
['packager.menu.removeConfirm']: [];
|
||||
['packager.menu.enable']: [];
|
||||
['packager.menu.disable']: [];
|
||||
['packager.menu.enabled']: [];
|
||||
['packager.menu.disabled']: [];
|
||||
['packager.menu.invalid']: [];
|
||||
['packager.menu.confirm']: [];
|
||||
['packager.menu.addError']: [];
|
||||
['packager.menu.importError']: [];
|
||||
['preferences.title']: [];
|
||||
['preferences.nav.general']: [];
|
||||
['preferences.nav.edit']: [];
|
||||
['preferences.nav.extension']: [];
|
||||
['preferences.nav.native']: [];
|
||||
['preferences.nav.laboratory']: [];
|
||||
['preferences.general.language']: [];
|
||||
['preferences.general.step']: [];
|
||||
['preferences.general.preci']: [];
|
||||
['preferences.general.theme']: [];
|
||||
['preferences.general.themeColor']: [];
|
||||
['preferences.general.preview_ip']: [];
|
||||
['preferences.edit.script_editor']: [];
|
||||
['preferences.edit.picture_editor']: [];
|
||||
['preferences.edit.browse']: [];
|
||||
['preferences.edit.remove']: [];
|
||||
['preferences.edit.internal']: [];
|
||||
['preferences.native.wechatgame_app_path']: [];
|
||||
['preferences.extension.package']: [];
|
||||
['preferences.laboratory.about']: [];
|
||||
['preferences.laboratory.new_add_component']: [];
|
||||
['preferences.browse']: [];
|
||||
['preferences.open']: [];
|
||||
['preview.title']: [];
|
||||
['preview.automatic']: [];
|
||||
['preview.automatic_tooltip']: [];
|
||||
['preview.scene_is_empty']: [];
|
||||
['preview.play']: [];
|
||||
['preview.refresh_device']: [];
|
||||
['preview.scan']: [];
|
||||
['preview.create_template']: [];
|
||||
['preview.load_current_scene_error']: [];
|
||||
['preview.creat_template_success']: [];
|
||||
['project-setting.title']: [];
|
||||
['project-setting.nav.preview']: [];
|
||||
['project-setting.nav.groupList']: [];
|
||||
['project-setting.nav.modules']: [];
|
||||
['project-setting.nav.engine']: [];
|
||||
['project-setting.nav.layer']: [];
|
||||
['project-setting.nav.graphics']: [];
|
||||
['project-setting.nav.general']: [];
|
||||
['project-setting.nav.projectPath']: [];
|
||||
['project-setting.nav.wizardPath']: [];
|
||||
['project-setting.preview.start_scene']: [];
|
||||
['project-setting.preview.auto_refresh']: [];
|
||||
['project-setting.preview.current_scene']: [];
|
||||
['project-setting.preview.simulator_setting_type']: [];
|
||||
['project-setting.preview.global']: [];
|
||||
['project-setting.preview.project']: [];
|
||||
['project-setting.preview.simulator_device_orientation']: [];
|
||||
['project-setting.preview.simulator_resolution']: [];
|
||||
['project-setting.preview.customize_resolution']: [];
|
||||
['project-setting.preview.vertical']: [];
|
||||
['project-setting.preview.horizontal']: [];
|
||||
['project-setting.modules.title']: [];
|
||||
['project-setting.modules.info']: [];
|
||||
['project-setting.modules.warn']: [];
|
||||
['project-setting.modules.module']: [];
|
||||
['project-setting.modules.inquiry']: [];
|
||||
['project-setting.modules.submodule']: [];
|
||||
['project-setting.modules.inquiry_all']: [];
|
||||
['project-setting.engine.cocos_default']: [];
|
||||
['project-setting.engine.user_customize']: [];
|
||||
['project-setting.engine.renderPipeline']: [];
|
||||
['project-setting.engine.physics']: [];
|
||||
['project-setting.engine.builtin']: [];
|
||||
['project-setting.engine.cannon']: [];
|
||||
['project-setting.engine.ammo']: [];
|
||||
['project-setting.general.browse']: [];
|
||||
['project-setting.general.ts_compiler']: [];
|
||||
['project-setting.general.tslint.title']: [];
|
||||
['project-setting.general.tslint.default']: [];
|
||||
['project-setting.general.tslint.path']: [];
|
||||
['project-setting.general.section_canvas']: [];
|
||||
['project-setting.general.design_resolution']: [];
|
||||
['project-setting.general.width']: [];
|
||||
['project-setting.general.height']: [];
|
||||
['project-setting.general.fit_width']: [];
|
||||
['project-setting.general.fit_height']: [];
|
||||
['project-setting.general.type_check_level']: [];
|
||||
['project-setting.general.type_check_tips.disable']: [];
|
||||
['project-setting.general.type_check_tips.checkOnly']: [];
|
||||
['project-setting.general.type_check_tips.fatalOnError']: [];
|
||||
['scene.title']: [];
|
||||
['scene.new']: [];
|
||||
['scene.save']: [];
|
||||
['scene.save_as']: [];
|
||||
['scene.develop']: [];
|
||||
['scene.terrain.is_create_message']: [];
|
||||
['scene.terrain.is_create']: [];
|
||||
['scene.terrain.cancel']: [];
|
||||
['scene.terrain.edit']: [];
|
||||
['scene.terrain.save']: [];
|
||||
['scene.terrain.delete']: [];
|
||||
['scene.terrain.abort']: [];
|
||||
['scene.messages.warning']: [];
|
||||
['scene.messages.scenario_modified']: [];
|
||||
['scene.messages.want_to_save']: [];
|
||||
['scene.messages.save']: [];
|
||||
['scene.messages.dont_save']: [];
|
||||
['scene.messages.cancel']: [];
|
||||
['scene.messages.save_as_fail']: [];
|
||||
['scene.save_prefab']: [];
|
||||
['scene.close_prefab']: [];
|
||||
['scene.save_clip']: [];
|
||||
['scene.close_clip']: [];
|
||||
['scene.gizmos.icon3d']: [];
|
||||
['scene.gizmos.showGrid']: [];
|
||||
['scene.ui_tools.zoom_up']: [];
|
||||
['scene.ui_tools.zoom_down']: [];
|
||||
['scene.ui_tools.zoom_reset']: [];
|
||||
['scene.ui_tools.align_top']: [];
|
||||
['scene.ui_tools.align_v_center']: [];
|
||||
['scene.ui_tools.align_bottom']: [];
|
||||
['scene.ui_tools.align_left']: [];
|
||||
['scene.ui_tools.align_h_center']: [];
|
||||
['scene.ui_tools.align_right']: [];
|
||||
['scene.ui_tools.distribute_top']: [];
|
||||
['scene.ui_tools.distribute_v_center']: [];
|
||||
['scene.ui_tools.distribute_bottom']: [];
|
||||
['scene.ui_tools.distribute_left']: [];
|
||||
['scene.ui_tools.distribute_h_center']: [];
|
||||
['scene.ui_tools.distribute_right']: [];
|
||||
['tester.auto_tooltip']: [];
|
||||
['tester.play_tooltip']: [];
|
||||
['tester.pause_tooltip']: [];
|
||||
['ui-kit.title']: [];
|
||||
}
|
@ -1,156 +0,0 @@
|
||||
declare module 'tga-js' {
|
||||
export default class TGA {
|
||||
width: number;
|
||||
height: number;
|
||||
getImageData(imageData?: ImageData): ImageData | {width: number, height: number, data: Uint8ClampedArray};
|
||||
constructor();
|
||||
load(data: Buffer): null;
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'psd.js' {
|
||||
import PNG from 'pngjs';
|
||||
export default class PSD {
|
||||
constructor (data: Buffer);
|
||||
|
||||
parse();
|
||||
|
||||
image: {
|
||||
toPng(): PNG;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'draco3dgltf' {
|
||||
export function createDecoderModule(options: DecoderModuleOptions): typeof DecoderModule;
|
||||
|
||||
export interface DecoderModuleOptions {
|
||||
|
||||
}
|
||||
|
||||
interface DecoderModule {
|
||||
|
||||
}
|
||||
|
||||
namespace DecoderModule {
|
||||
function destroy(decoder: Decoder): void;
|
||||
|
||||
function destroy(buffer: DecoderBuffer): void;
|
||||
|
||||
function destroy(int32Array: DracoInt32Array): void;
|
||||
|
||||
function destroy(mesh: Geometry): void;
|
||||
|
||||
export class DecoderBuffer {
|
||||
public Init(buffer: Int8Array, size: number): void;
|
||||
}
|
||||
|
||||
export class Decoder {
|
||||
public GetEncodedGeometryType(buffer: DecoderBuffer): GeometryType;
|
||||
|
||||
public DecodeBufferToMesh(buffer: DecoderBuffer, mesh: Mesh): Status;
|
||||
|
||||
public DecodeBufferToPointCloud(buffer: DecoderBuffer, pointCloud: PointCloud): Status;
|
||||
|
||||
public GetFaceFromMesh(geometry: Geometry, index: number, out: DracoInt32Array): void;
|
||||
|
||||
public GetAttributeId(geometry: Geometry, attributeType: AttributeType): number;
|
||||
|
||||
public GetAttributeByUniqueId(geometry: Geometry, uniqueId: number): Attribute;
|
||||
|
||||
public GetAttribute(geometry: Geometry, attributeId: number): Attribute;
|
||||
|
||||
public GetAttributeInt8ForAllPoints(geometry: Geometry, attribute: Attribute, attributeData: DracoInt8Array): void;
|
||||
|
||||
public GetAttributeInt16ForAllPoints(geometry: Geometry, attribute: Attribute, attributeData: DracoInt16Array): void;
|
||||
|
||||
public GetAttributeInt32ForAllPoints(geometry: Geometry, attribute: Attribute, attributeData: DracoInt32Array): void;
|
||||
|
||||
public GetAttributeUInt8ForAllPoints(geometry: Geometry, attribute: Attribute, attributeData: DracoUInt8Array): void;
|
||||
|
||||
public GetAttributeUInt16ForAllPoints(geometry: Geometry, attribute: Attribute, attributeData: DracoUInt16Array): void;
|
||||
|
||||
public GetAttributeUInt32ForAllPoints(geometry: Geometry, attribute: Attribute, attributeData: DracoUInt32Array): void;
|
||||
|
||||
public GetAttributeFloatForAllPoints(geometry: Geometry, attribute: Attribute, attributeData: DracoFloat32Array): void;
|
||||
}
|
||||
|
||||
class Status {
|
||||
public ok(): boolean;
|
||||
public error_msg(): string;
|
||||
}
|
||||
|
||||
enum GeometryType {
|
||||
// See below
|
||||
}
|
||||
|
||||
export const TRIANGULAR_MESH: GeometryType;
|
||||
|
||||
export const POINT_CLOUD: GeometryType;
|
||||
|
||||
export class Mesh {
|
||||
public ptr: number;
|
||||
|
||||
public num_faces(): number;
|
||||
|
||||
public num_points(): number;
|
||||
}
|
||||
|
||||
export class PointCloud {
|
||||
public ptr: number;
|
||||
|
||||
public num_points(): number;
|
||||
}
|
||||
|
||||
export type Geometry = Mesh | PointCloud;
|
||||
|
||||
enum AttributeType {
|
||||
// See below
|
||||
}
|
||||
|
||||
export const POSITION: AttributeType;
|
||||
export const NORMAL: AttributeType;
|
||||
export const COLOR: AttributeType;
|
||||
export const TEX_COORD: AttributeType;
|
||||
|
||||
class Attribute {
|
||||
private constructor();
|
||||
public num_components(): number;
|
||||
}
|
||||
|
||||
export class DracoInt8Array {
|
||||
public size(): number;
|
||||
public GetValue(index: number): number;
|
||||
}
|
||||
|
||||
export class DracoInt16Array {
|
||||
public size(): number;
|
||||
public GetValue(index: number): number;
|
||||
}
|
||||
|
||||
export class DracoInt32Array {
|
||||
public size(): number;
|
||||
public GetValue(index: number): number;
|
||||
}
|
||||
|
||||
export class DracoUInt8Array {
|
||||
public size(): number;
|
||||
public GetValue(index: number): number;
|
||||
}
|
||||
|
||||
export class DracoUInt16Array {
|
||||
public size(): number;
|
||||
public GetValue(index: number): number;
|
||||
}
|
||||
|
||||
export class DracoUInt32Array {
|
||||
public size(): number;
|
||||
public GetValue(index: number): number;
|
||||
}
|
||||
|
||||
export class DracoFloat32Array {
|
||||
public size(): number;
|
||||
public GetValue(index: number): number;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
export interface message extends EditorMessageMap {
|
||||
'query-info': {
|
||||
params: [] | [
|
||||
string,
|
||||
],
|
||||
result: {
|
||||
type: string;
|
||||
version: string;
|
||||
path: string;
|
||||
nativeVersion: string; // 原生引擎类型 'custom' 'builtin'
|
||||
nativePath: string;
|
||||
editor: string;
|
||||
renderPipeline: string;
|
||||
},
|
||||
},
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
|
||||
export * from '@editor/library-type/packages/builder/@types/protect';
|
||||
import { IInternalBuildOptions, InternalBuildResult } from '@editor/library-type/packages/builder/@types/protect';
|
||||
/// <reference path="@editor/library-type/packages/builder/@types/protect/global.d.ts"/>
|
||||
|
||||
export type IOrientation = 'landscape' | 'portrait';
|
||||
|
||||
export interface ITaskOption extends IInternalBuildOptions {
|
||||
packages: {
|
||||
'android': IOptions;
|
||||
}
|
||||
}
|
||||
|
||||
export type IAppABI = 'armeabi-v7a' | 'arm64-v8a' | 'x86' | 'x86_64';
|
||||
|
||||
export interface IOptions {
|
||||
packageName: string;
|
||||
orientation: {
|
||||
landscapeRight: boolean;
|
||||
landscapeLeft: boolean;
|
||||
portrait: boolean;
|
||||
upsideDown: boolean;
|
||||
},
|
||||
|
||||
apiLevel: string;
|
||||
appABIs: IAppABI[];
|
||||
|
||||
useDebugKeystore: boolean;
|
||||
keystorePath: string;
|
||||
keystorePassword: string;
|
||||
keystoreAlias: string;
|
||||
keystoreAliasPassword: string;
|
||||
|
||||
appBundle: boolean;
|
||||
androidInstant: boolean;
|
||||
remoteUrl: string;
|
||||
sdkPath: string;
|
||||
ndkPath: string;
|
||||
|
||||
renderBackEnd: {
|
||||
vulkan: boolean;
|
||||
gles3: boolean;
|
||||
gles2: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
export interface IBuildResult extends InternalBuildResult {
|
||||
userFrameWorks: boolean; // 是否使用用户的配置数据
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
/// <reference path="../../../@types/index.d.ts"/>
|
||||
/// <reference path="@editor/library-type/packages/builder/@types/protect/global.d.ts"/>
|
||||
export * from "@editor/library-type/packages/builder/@types/protect";
|
||||
import { IInternalBuildOptions } from "@editor/library-type/packages/builder/@types/protect/index";
|
||||
|
||||
export type IOrientation = 'landscape' | 'portrait';
|
||||
|
||||
export interface ITaskOption extends IInternalBuildOptions {
|
||||
packages:{
|
||||
'huawei-quick-game': IOptions;
|
||||
};
|
||||
}
|
||||
|
||||
export interface IOptions {
|
||||
package: string;
|
||||
icon: string;
|
||||
versionName: string;
|
||||
versionCode: string;
|
||||
minPlatformVersion: string;
|
||||
deviceOrientation: IOrientation;
|
||||
tinyPackageServer: string;
|
||||
useDebugKey: boolean;
|
||||
privatePemPath: string;
|
||||
certificatePemPath: string;
|
||||
|
||||
fullScreen: boolean;
|
||||
logLevel: string;
|
||||
manifestPath?: string;
|
||||
}
|
||||
|
||||
export interface ICompileOptions {
|
||||
name: string;
|
||||
tinyPackageServer: string;
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user