军团活动:修复rpc调用以及其他问题
This commit is contained in:
@@ -27,6 +27,7 @@ export class GuildRemote {
|
||||
private GUILD_REC_ADD = 'onGuildRecAdd';
|
||||
private GUILD_ACT_RANK = 'onGuildGateRankUpdate'; // 军团活动排行榜
|
||||
private GUILD_GATE_ACT_HP = 'onGuildGateHpUpdate'; // 军团活动蛮夷入侵排行榜
|
||||
private GUILD_ACTIVITY_END = 'onGuildActivityEnd';
|
||||
|
||||
/**
|
||||
* 封装,军团相关channel名: 'guild'+guildCode
|
||||
@@ -158,6 +159,14 @@ export class GuildRemote {
|
||||
this.pushMessage(guildCode, this.GUILD_REC_ADD, {type, params, createTime});
|
||||
}
|
||||
|
||||
/**
|
||||
* 向军团推送城门血量
|
||||
* @param guildCode
|
||||
*/
|
||||
public pushGateHp(guildCode: string, msg: GuildGateRankParam) {
|
||||
this.pushMessage(guildCode, this.GUILD_GATE_ACT_HP, msg);
|
||||
}
|
||||
|
||||
/**
|
||||
* 向军团推送排行榜名次
|
||||
* @param guildCode
|
||||
@@ -165,4 +174,13 @@ export class GuildRemote {
|
||||
public pushRank(guildCode: string, msg: GuildGateRankParam) {
|
||||
this.pushMessage(guildCode, this.GUILD_ACT_RANK, msg);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 向军团推送结束活动
|
||||
* @param guildCode
|
||||
*/
|
||||
public async sendGuildActivityEnd(guildCode: string) {
|
||||
console.log("MSG END")
|
||||
this.pushMessage(guildCode, this.GUILD_ACTIVITY_END, {});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user