军团活动:诸侯混战初始

This commit is contained in:
luying
2021-03-22 20:52:17 +08:00
parent d733210c3a
commit a56a6cf2f3
12 changed files with 201 additions and 34 deletions
+25
View File
@@ -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;
}
}