军团活动:诸侯混战初始
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { GUILDACTIVITY } from "../../pubUtils/dicParam";
|
||||
import { SimpleGuildRankParam, SimpleRoleRankParam } from '../rank'
|
||||
import { prop } from "@typegoose/typegoose";
|
||||
import { CITY_STATUS } from "../../consts";
|
||||
|
||||
export class GateMembersRec {
|
||||
roleId: string;
|
||||
@@ -100,4 +101,16 @@ export class Member {
|
||||
roleId: string; // 玩家id
|
||||
@prop({required: true})
|
||||
job: number; // 在军团的职位
|
||||
}
|
||||
}
|
||||
|
||||
export class CityParam {
|
||||
cityId: number = 0; // 城池id
|
||||
guardGuildCode: string = ''; // 占领军团id
|
||||
guardGuildName: string = ''; // 占领军团名
|
||||
declareCount: number = 0; // 宣战数
|
||||
status: number = CITY_STATUS.NOT_OPEN; // 城池对于我军状态
|
||||
|
||||
constructor(cityId: number) {
|
||||
this.cityId = cityId;
|
||||
}
|
||||
}
|
||||
@@ -90,4 +90,29 @@ export class SimpleRoleRankParam {
|
||||
this.roleName = roleName;
|
||||
this.num = num;
|
||||
}
|
||||
}
|
||||
|
||||
export class KeyName {
|
||||
key: string;
|
||||
serverId?: number;
|
||||
guildCode?: string;
|
||||
|
||||
constructor(key: string) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
getName() {
|
||||
let res = this.key;
|
||||
if(this.serverId) res += `:${this.serverId}`;
|
||||
if(this.guildCode) res += `:${this.guildCode}`;
|
||||
return res;
|
||||
}
|
||||
|
||||
getNameWithPlus(...plus: string[]) {
|
||||
let res = this.getName();
|
||||
for(let p of plus) {
|
||||
res += `:${p}`;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user