19 lines
326 B
TypeScript
Raw Normal View History

2023-11-26 03:06:23 +08:00
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}))
}
}