1
This commit is contained in:
parent
59bcaad3b6
commit
d34fcac721
@ -83,6 +83,7 @@ type GuildMgr interface {
|
|||||||
GetGuildByAccountId(string) Guild
|
GetGuildByAccountId(string) Guild
|
||||||
GetGuildByGuildName(string) Guild
|
GetGuildByGuildName(string) Guild
|
||||||
GetGuildJob(string) int32
|
GetGuildJob(string) int32
|
||||||
|
|
||||||
AsyncCreateGuild(string, string, int32, string, func(int32, string, string))
|
AsyncCreateGuild(string, string, int32, string, func(int32, string, string))
|
||||||
AsyncGetApplyList(int64, string, func(int32, string, int64, []string))
|
AsyncGetApplyList(int64, string, func(int32, string, int64, []string))
|
||||||
AsyncApplyJoin(string, string, func(int32, string))
|
AsyncApplyJoin(string, string, func(int32, string))
|
||||||
@ -117,4 +118,9 @@ type DbLogMgr interface {
|
|||||||
GuildClearEmptyEnd(string, string)
|
GuildClearEmptyEnd(string, string)
|
||||||
GuildCreateConsumeBegin(string, string, string)
|
GuildCreateConsumeBegin(string, string, string)
|
||||||
GuildCreateConsumeEnd(string, string, string, int32)
|
GuildCreateConsumeEnd(string, string, string, int32)
|
||||||
|
GuildAccpetApply(string, string, string)
|
||||||
|
GuildLeave(string, string)
|
||||||
|
GuildKickout(string, string, string)
|
||||||
|
GuildSetJob(string, string, int32)
|
||||||
|
GuildDisband(string, string, int32)
|
||||||
}
|
}
|
||||||
|
@ -718,14 +718,16 @@ func (this *guildMgr) AsyncUpdateGuild(accountId string, kv map[int32]string, cb
|
|||||||
|
|
||||||
func (this *guildMgr) NotifyGuildMsg(guildId string, msg proto.Message) {
|
func (this *guildMgr) NotifyGuildMsg(guildId string, msg proto.Message) {
|
||||||
g := this.internalGetGuildByGuildId(guildId)
|
g := this.internalGetGuildByGuildId(guildId)
|
||||||
g.traverseMembers(
|
if g != nil {
|
||||||
func (m *member) bool {
|
g.traverseMembers(
|
||||||
hum := GetPlayerMgr().GetPlayerByAccountId(m.memberId)
|
func (m *member) bool {
|
||||||
if hum != nil {
|
hum := GetPlayerMgr().GetPlayerByAccountId(m.memberId)
|
||||||
hum.SendMsg(msg)
|
if hum != nil {
|
||||||
}
|
hum.SendMsg(msg)
|
||||||
return true
|
}
|
||||||
})
|
return true
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *guildMgr) AsyncGetGuildRank(num int32, cb func(int32, string, []string)) {
|
func (this *guildMgr) AsyncGetGuildRank(num int32, cb func(int32, string, []string)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user