1
This commit is contained in:
parent
16c1d480fd
commit
48139bfac4
@ -96,7 +96,7 @@ type GuildMgr interface {
|
|||||||
|
|
||||||
AsyncLeave(string, func(int32, string))
|
AsyncLeave(string, func(int32, string))
|
||||||
AsyncKickout(string, string, func(int32, string))
|
AsyncKickout(string, string, func(int32, string))
|
||||||
AsyncDisband(string, string, func(int32, string))
|
AsyncDisband(string, func(int32, string, []string))
|
||||||
AsyncSetNotice(string, string, func(int32, string))
|
AsyncSetNotice(string, string, func(int32, string))
|
||||||
AsyncSetAvatar(string, string, func(int32, string))
|
AsyncSetAvatar(string, string, func(int32, string))
|
||||||
AsyncSetName(string, string, func(int32, string))
|
AsyncSetName(string, string, func(int32, string))
|
||||||
|
@ -468,7 +468,7 @@ func (this *guildMgr) AsyncKickout(accountId string, targetId string, cb func(in
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *guildMgr) AsyncDisband(string, string, func(int32, string)) {
|
func (this *guildMgr) AsyncDisband(accountId string, cb func(int32, string, []string)) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -433,6 +433,16 @@ func (this *player) CMSetMemberLevel(hdr *f5.MsgHdr, msg *cs.CMSetMemberLevel) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this *player) CMDisband(hdr *f5.MsgHdr, msg *cs.CMDisband) {
|
func (this *player) CMDisband(hdr *f5.MsgHdr, msg *cs.CMDisband) {
|
||||||
|
rspMsg := new(cs.SMDisband)
|
||||||
|
GetGuildMgr().AsyncDisband(
|
||||||
|
this.GetAccountId(),
|
||||||
|
func (errCode int32, errMsg string, members []string) {
|
||||||
|
if errCode != 0 {
|
||||||
|
this.SendMsg(rspMsg.Err(errCode, errMsg))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.SendMsg(rspMsg)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *player) CMSetNotice(hdr *f5.MsgHdr, msg *cs.CMSetNotice) {
|
func (this *player) CMSetNotice(hdr *f5.MsgHdr, msg *cs.CMSetNotice) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user