mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
简单的升星
This commit is contained in:
18
JisolGameCocos/assets/script/ui/VO/PetOV.ts
Normal file
18
JisolGameCocos/assets/script/ui/VO/PetOV.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { PlayerPetOV } from "../../consts/API";
|
||||
|
||||
//宠物选择
|
||||
export interface PlayerPetOVSelect extends PlayerPetOV{
|
||||
|
||||
//是否选择
|
||||
isSelect:boolean;
|
||||
|
||||
}
|
||||
|
||||
export class PetOV{
|
||||
|
||||
static PlayerPetOVSelects(pets:PlayerPetOV[]):PlayerPetOVSelect[]{
|
||||
return pets.map(pet => ({...pet,isSelect:false}))
|
||||
}
|
||||
|
||||
}
|
||||
|
9
JisolGameCocos/assets/script/ui/VO/PetOV.ts.meta
Normal file
9
JisolGameCocos/assets/script/ui/VO/PetOV.ts.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "b4cea2c3-cb9a-43b7-9b23-a0e2d5dfe9e5",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
Reference in New Issue
Block a user