mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-10-09 00:26:11 +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}))
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user