mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交锻造系统
This commit is contained in:
@@ -2,6 +2,7 @@ import { app } from "../App";
|
||||
import PlayerPetData from "../data/PlayerPetData";
|
||||
import ResourceData from "../data/ResourceData";
|
||||
import { GUI } from "../ui/UIConfig";
|
||||
import { GAttribute } from "./entity/EntityData";
|
||||
|
||||
//接受到JSON消息
|
||||
export const RData = (data:any,isTips:boolean = false) => {
|
||||
@@ -101,6 +102,29 @@ export interface ModeOnHookRankingOV{
|
||||
mapId:number; //地图Id
|
||||
}
|
||||
|
||||
//宠物装备
|
||||
export interface PetEquip{
|
||||
equipId:number; //装备唯一Id
|
||||
equipCfgId:number; //装备配置表Id
|
||||
equipPlayerId:number; //装备的所属玩家Id
|
||||
equipLevel:number; //装备等级
|
||||
equipWear:number; //当前装备穿戴的宠物Id
|
||||
equipPosition:number; //装备部位
|
||||
|
||||
equipBaseAttributes:GAttribute[]; //基础属性
|
||||
equipHighAttributes:GAttribute[]; //高级属性
|
||||
|
||||
}
|
||||
|
||||
//宠物锻造台
|
||||
export interface EquipForgingBench{
|
||||
forgingId:number; //锻造台Id
|
||||
playerId:number; //锻造台所属的玩家Id
|
||||
forgingExp:number; //锻造等级经验
|
||||
forgingQuality:number; //锻造品质等级
|
||||
forgingPetId:number; //当前占用宠物Id
|
||||
}
|
||||
|
||||
export const API = {
|
||||
|
||||
UserRegister : async () => RData(await app.api.post(`/user/register`)) as UserVO, //玩家注册
|
||||
@@ -129,5 +153,11 @@ export const API = {
|
||||
/********** 排行榜接口(无限模式) *******************/
|
||||
GOnHookRankings: async (mapId:number) => RData(await app.api.get(`/game/mode/onHook/onRankings/${mapId}`),false) as ModeOnHookRankingOV[], //获取玩家资源
|
||||
|
||||
/********** 宠物装备系统接口 ****************/
|
||||
PetEquipAll: async () => RData(await app.api.get(`/game/equip/all`),false) as PetEquip[], //获取全部装备
|
||||
PetEquipForging: async () => RData(await app.api.get(`/game/equip/forging`),true) as PetEquip, //锻造装备
|
||||
PetEquipForgingInfo: async () => RData(await app.api.get(`/game/equip/forging/info`),true) as EquipForgingBench, //锻造台
|
||||
PetEquipForgingPetId: async (petId) => RData(await app.api.get(`/game/equip/forging/petId/${petId}`),true) as EquipForgingBench, //设置锻造宠
|
||||
|
||||
}
|
||||
|
||||
|
9
JisolGameCocos/assets/script/consts/entity.meta
Normal file
9
JisolGameCocos/assets/script/consts/entity.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "2476b527-7c23-4d00-b752-94a0595f3585",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
9
JisolGameCocos/assets/script/consts/entity/EntityData.ts
Normal file
9
JisolGameCocos/assets/script/consts/entity/EntityData.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
|
||||
//属性类
|
||||
export interface GAttribute{
|
||||
|
||||
id:number;
|
||||
value:number;
|
||||
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "a861d195-9b8d-424e-8122-b1ccb06b516c",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
Reference in New Issue
Block a user