mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交新手引导
This commit is contained in:
@@ -34,15 +34,25 @@ export interface PlayerInfoOV{
|
||||
playerCreateTime:number, //玩家创建时间
|
||||
novice: false, //是否过引导
|
||||
}
|
||||
export interface PlayerPetOV{
|
||||
petId:number, //宠物唯一Id
|
||||
petPlayerId:number; //宠物的玩家Id
|
||||
petTbId:number; //宠物配置表Id
|
||||
petGrade:number; //宠物等级
|
||||
}
|
||||
|
||||
export const API = {
|
||||
|
||||
UserRegister : async () => RData(await app.api.post(`/user/register`)) as UserVO, //玩家注册
|
||||
UserLogin : async (account:string,password:string) => RData(await app.api.post(`/user/login`,{userId:account,userPass:password})) as UserLoginVO, //玩家登录
|
||||
GetPlayerInfo : async () => RData(await app.api.get(`/game/player/info`),false) as NewsContext, //获取玩家信息
|
||||
GetPlayerInfo : async () => RData(await app.api.get(`/game/player/info`),false) as PlayerInfoOV, //获取玩家信息
|
||||
|
||||
/********** 新手引导接口 *****************/
|
||||
SavePlayerInfo : async (playerName:string,novice:boolean = true) => (await app.api.post(`/game/player/info/save`,{playerName,novice})).data as NewsContext, //保存玩家信息
|
||||
SelectNovicePet: async (petId:number) => RData(await app.api.post(`/game/novice/select/${petId}`),true), //选择新手引导宠物
|
||||
|
||||
|
||||
/********** 宠物接口 ******************/
|
||||
GetPlayerPets: async () => RData(await app.api.get(`/game/pet/list`),false) as PlayerPetOV[], //获取玩家全部宠物
|
||||
}
|
||||
|
||||
|
@@ -1,5 +1,9 @@
|
||||
import { sys } from "cc";
|
||||
|
||||
export enum UIPetAnim{
|
||||
std = "std",
|
||||
}
|
||||
|
||||
export enum StorageEnum{
|
||||
|
||||
Token = "Storage_Token", // Token
|
||||
|
Reference in New Issue
Block a user