first commit
This commit is contained in:
78
assets/scripts/config/Basci.ts
Normal file
78
assets/scripts/config/Basci.ts
Normal file
@@ -0,0 +1,78 @@
|
||||
// /**征兵相关**/
|
||||
// /**武将相关**/
|
||||
|
||||
import { _decorator } from 'cc';
|
||||
export class Conscript {
|
||||
cost_wood: number = 0;
|
||||
cost_iron: number = 0;
|
||||
cost_stone: number = 0;
|
||||
cost_grain: number = 0;
|
||||
cost_gold: number = 0;
|
||||
}
|
||||
|
||||
export class General {
|
||||
physical_power_limit: number = 0; //体力上限
|
||||
cost_physical_power: number = 0; //消耗体力
|
||||
recovery_physical_power: number = 0; //恢复体力
|
||||
reclamation_time: number = 0; //屯田消耗时间,单位秒
|
||||
reclamation_cost: number = 0; //屯田消耗政令
|
||||
draw_general_cost: number = 0; //抽卡消耗金币
|
||||
pr_point: number = 0; //合成一个武将或者的技能点
|
||||
limit: number = 0; //武将数量上限
|
||||
}
|
||||
|
||||
export class Role {
|
||||
wood: number = 0;
|
||||
iron: number = 0;
|
||||
stone: number = 0;
|
||||
grain: number = 0;
|
||||
gold: number = 0;
|
||||
decree: number = 0;
|
||||
wood_yield: number = 0;
|
||||
iron_yield: number = 0;
|
||||
stone_yield: number = 0;
|
||||
grain_yield: number = 0;
|
||||
gold_yield: number = 0;
|
||||
depot_capacity: number = 0; //仓库初始容量
|
||||
build_limit: number = 0; //野外建筑上限
|
||||
recovery_time: number = 0;
|
||||
decree_limit: number = 0; //令牌上限
|
||||
collect_times_limit: number = 0; //每日征收次数上限
|
||||
collect_interval: number = 0; //征收间隔
|
||||
pos_tag_limit: number = 0; //位置标签上限
|
||||
}
|
||||
|
||||
export class City {
|
||||
cost: number = 0;
|
||||
durable: number = 0;
|
||||
recovery_time: number = 0;
|
||||
transform_rate: number = 0;
|
||||
}
|
||||
|
||||
export class Build {
|
||||
war_free: number = 0; //免战时间,单位秒
|
||||
giveUp_time: number = 0; //建筑放弃时间
|
||||
fortress_limit: number = 0; //要塞上限
|
||||
}
|
||||
|
||||
export class Union {
|
||||
member_limit: number = 0;
|
||||
}
|
||||
|
||||
export class NpcLevel {
|
||||
soilders: number
|
||||
}
|
||||
|
||||
export class Npc {
|
||||
levels: NpcLevel[]
|
||||
}
|
||||
|
||||
export class Basic {
|
||||
conscript: Conscript;
|
||||
general: General;
|
||||
role: Role;
|
||||
city: City;
|
||||
build: Build;
|
||||
union: Union;
|
||||
npc: Npc;
|
||||
}
|
||||
11
assets/scripts/config/Basci.ts.meta
Normal file
11
assets/scripts/config/Basci.ts.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "cc925316-fd26-4809-9a6f-dac71f76f339",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"simulateGlobals": []
|
||||
}
|
||||
}
|
||||
13
assets/scripts/config/GameConfig.ts
Normal file
13
assets/scripts/config/GameConfig.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
// /**连接配置*/
|
||||
// 使用nginx代理后的配置(通过80端口访问)
|
||||
// WebSocket通过 /ws 路径代理到8004端口
|
||||
// HTTP API通过 /api 路径代理到8088端口
|
||||
|
||||
import { _decorator } from 'cc';
|
||||
const GameConfig = {
|
||||
// 通过nginx代理的WebSocket地址(nginx将/ws代理到127.0.0.1:8004)
|
||||
serverUrl: "ws://103.236.81.216:6060/ws",
|
||||
// 通过nginx代理的HTTP API地址(nginx将/api代理到127.0.0.1:8088)
|
||||
webUrl: "http://103.236.81.216:6060/api",
|
||||
}
|
||||
export { GameConfig };
|
||||
11
assets/scripts/config/GameConfig.ts.meta
Normal file
11
assets/scripts/config/GameConfig.ts.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "c7559215-2f52-41ba-9e14-635f181819c5",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"simulateGlobals": []
|
||||
}
|
||||
}
|
||||
11
assets/scripts/config/HttpConfig.ts
Normal file
11
assets/scripts/config/HttpConfig.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
// /**http接口配置*/
|
||||
// //账号注册
|
||||
|
||||
import { _decorator } from 'cc';
|
||||
const HttpConfig = {
|
||||
register: {
|
||||
name: "register",
|
||||
url: "/account/register"
|
||||
},
|
||||
}
|
||||
export { HttpConfig };
|
||||
11
assets/scripts/config/HttpConfig.ts.meta
Normal file
11
assets/scripts/config/HttpConfig.ts.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "5c375b87-4690-4892-a80f-8754f10d274a",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"simulateGlobals": []
|
||||
}
|
||||
}
|
||||
90
assets/scripts/config/ServerConfig.ts
Normal file
90
assets/scripts/config/ServerConfig.ts
Normal file
@@ -0,0 +1,90 @@
|
||||
// /**服务器接口配置*/
|
||||
import { _decorator } from 'cc';
|
||||
|
||||
const ServerConfig = {
|
||||
account_login: "account.login",
|
||||
account_logout: "account.logout",
|
||||
account_reLogin: "account.reLogin",
|
||||
account_robLogin:"robLogin",
|
||||
|
||||
role_create: "role.create",
|
||||
role_roleList: "role.roleList",
|
||||
role_enterServer: "role.enterServer",
|
||||
role_myCity: "role.myCity",
|
||||
role_myRoleRes: "role.myRoleRes",
|
||||
role_myProperty: "role.myProperty",
|
||||
role_upPosition:"role.upPosition",
|
||||
role_posTagList:"role.posTagList",
|
||||
role_opPosTag:"role.opPosTag",
|
||||
|
||||
nationMap_config: "nationMap.config",
|
||||
nationMap_scanBlock: "nationMap.scanBlock",
|
||||
nationMap_giveUp: "nationMap.giveUp",
|
||||
nationMap_build: "nationMap.build",
|
||||
nationMap_upBuild: "nationMap.upBuild",
|
||||
nationMap_delBuild: "nationMap.delBuild",
|
||||
|
||||
city_facilities: "city.facilities",
|
||||
city_upFacility: "city.upFacility",
|
||||
|
||||
|
||||
general_myGenerals: "general.myGenerals",
|
||||
general_drawGeneral: "general.drawGeneral",
|
||||
general_composeGeneral: "general.composeGeneral",
|
||||
general_addPrGeneral: "general.addPrGeneral",
|
||||
general_convert: "general.convert",
|
||||
|
||||
general_upSkill: "general.upSkill",
|
||||
general_downSkill: "general.downSkill",
|
||||
general_lvSkill: "general.lvSkill",
|
||||
|
||||
army_myList: "army.myList",
|
||||
army_myOne: "army.myOne",
|
||||
army_dispose: "army.dispose",
|
||||
army_conscript: "army.conscript",
|
||||
army_assign: "army.assign",
|
||||
|
||||
war_report:"war.report",
|
||||
war_read:"war.read",
|
||||
|
||||
union_create:"union.create",
|
||||
union_join:"union.join",
|
||||
union_list:"union.list",
|
||||
union_member:"union.member",
|
||||
union_applyList:"union.applyList",
|
||||
union_dismiss:"union.dismiss",
|
||||
union_verify:"union.verify",
|
||||
union_exit:"union.exit",
|
||||
union_kick:"union.kick",
|
||||
union_appoint:"union.appoint",
|
||||
union_abdicate:"union.abdicate",
|
||||
union_modNotice:"union.modNotice",
|
||||
union_info:"union.info",
|
||||
union_log:"union.log",
|
||||
union_apply_push: "unionApply.push",
|
||||
|
||||
interior_collect: "interior.collect",
|
||||
interior_openCollect: "interior.openCollect",
|
||||
interior_transform: "interior.transform",
|
||||
|
||||
war_reportPush:"warReport.push",
|
||||
general_push: "general.push",
|
||||
army_push: "army.push",
|
||||
roleBuild_push:"roleBuild.push",
|
||||
roleCity_push:"roleCity.push",
|
||||
facility_push:"facility.push",
|
||||
roleRes_push:"roleRes.push",
|
||||
|
||||
skill_list:"skill.list",
|
||||
skill_push:"skill.push",
|
||||
|
||||
chat_login:"chat.login",
|
||||
chat_chat:"chat.chat",
|
||||
chat_history:"chat.history",
|
||||
chat_join:"chat.join",
|
||||
chat_exit:"chat.exit",
|
||||
chat_push:"chat.push",
|
||||
}
|
||||
|
||||
|
||||
export { ServerConfig };
|
||||
11
assets/scripts/config/ServerConfig.ts.meta
Normal file
11
assets/scripts/config/ServerConfig.ts.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "2c4e0735-a613-4b33-97db-17b187f5121f",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"simulateGlobals": []
|
||||
}
|
||||
}
|
||||
12
assets/scripts/config/skill.meta
Normal file
12
assets/scripts/config/skill.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"ver": "1.1.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "0311a18e-52a9-47fa-8713-5c569f8b8153",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"compressionType": {},
|
||||
"isRemoteBundle": {}
|
||||
}
|
||||
}
|
||||
58
assets/scripts/config/skill/Skill.ts
Normal file
58
assets/scripts/config/skill/Skill.ts
Normal file
@@ -0,0 +1,58 @@
|
||||
// //技能大纲
|
||||
// //技能配置
|
||||
|
||||
import { _decorator } from 'cc';
|
||||
export class trigger {
|
||||
type: number
|
||||
des: string
|
||||
}
|
||||
|
||||
export class triggerType {
|
||||
des: string
|
||||
list:trigger[]
|
||||
}
|
||||
|
||||
export class effect {
|
||||
type: number
|
||||
des: string
|
||||
isRate: boolean
|
||||
}
|
||||
|
||||
export class effectType {
|
||||
des: string
|
||||
list:effect[]
|
||||
}
|
||||
|
||||
export class target {
|
||||
type: number
|
||||
des: string
|
||||
}
|
||||
|
||||
export class targetType {
|
||||
des: string
|
||||
list:target[]
|
||||
}
|
||||
|
||||
export class SkillOutline {
|
||||
trigger_type: triggerType
|
||||
effect_type: effectType
|
||||
target_type: targetType
|
||||
}
|
||||
|
||||
export class SkillLevel {
|
||||
probability: number //发动概率
|
||||
effect_value:number[] //效果值
|
||||
effect_round: number[] //效果持续回合数
|
||||
}
|
||||
|
||||
export class SkillConf {
|
||||
cfgId: number
|
||||
name: string
|
||||
des: string
|
||||
trigger: number //发起类型
|
||||
target: number //目标类型
|
||||
limit: number //可以被武将装备上限
|
||||
arms:number[] //可以装备的兵种
|
||||
include_effect: number[] //技能包括的效果
|
||||
levels:SkillLevel[]
|
||||
}
|
||||
11
assets/scripts/config/skill/Skill.ts.meta
Normal file
11
assets/scripts/config/skill/Skill.ts.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "167f604d-b3a0-4f71-bd33-03c2c6cb6d11",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"simulateGlobals": []
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user