This commit is contained in:
meixiongfeng 2023-06-15 22:49:48 +08:00
commit a97c574ada
4 changed files with 23 additions and 6 deletions

View File

@ -13,6 +13,8 @@ import (
cfg "go_dreamfactory/sys/configure/structs" cfg "go_dreamfactory/sys/configure/structs"
) )
var _ comm.IArena = (*Arena)(nil)
const moduleName = "竞技场" const moduleName = "竞技场"
/* /*
@ -94,12 +96,15 @@ func (this *Arena) Rpc_ModuleArenaModifyIntegral(ctx context.Context, args *pb.R
} }
//红点需求 //红点需求
func (this *Arena) Reddot(session comm.IUserSession, rid ...comm.ReddotType) (result map[comm.ReddotType]bool) { func (this *Arena) Reddot(session comm.IUserSession, rid ...comm.ReddotType) (result map[comm.ReddotType]*pb.ReddotItem) {
result = make(map[comm.ReddotType]bool) result = make(map[comm.ReddotType]*pb.ReddotItem)
for _, v := range rid { for _, v := range rid {
switch v { switch v {
case comm.Reddot22102: case comm.Reddot22102:
result[comm.Reddot22102] = this.modelArena.reddot(session) result[comm.Reddot22102] = &pb.ReddotItem{
Rid: int32(comm.Reddot22102),
}
result[comm.Reddot22102].Activated = this.modelArena.reddot(session)
break break
} }
} }

View File

@ -13,6 +13,9 @@ import (
描述:全局属性增幅器 描述:全局属性增幅器
开发:李伟 开发:李伟
*/ */
var _ comm.IHoroscope = (*Horoscope)(nil)
func NewModule() core.IModule { func NewModule() core.IModule {
m := new(Horoscope) m := new(Horoscope)
return m return m
@ -59,12 +62,15 @@ func (this *Horoscope) ComputeHeroNumeric(uid string, hero ...*pb.DBHero) {
} }
//红点需求 //红点需求
func (this *Horoscope) Reddot(session comm.IUserSession, rid ...comm.ReddotType) (result map[comm.ReddotType]bool) { func (this *Horoscope) Reddot(session comm.IUserSession, rid ...comm.ReddotType) (result map[comm.ReddotType]*pb.ReddotItem) {
result = make(map[comm.ReddotType]bool) result = make(map[comm.ReddotType]*pb.ReddotItem)
for _, v := range rid { for _, v := range rid {
switch v { switch v {
case comm.Reddot17: case comm.Reddot17:
result[comm.Reddot17] = this.modelHoroscope.reddot(session) result[comm.Reddot17] = &pb.ReddotItem{
Rid: int32(comm.Reddot17),
Activated: this.modelHoroscope.reddot(session),
}
break break
} }
} }

View File

@ -22,6 +22,9 @@ import (
描述:捕羊大赛 描述:捕羊大赛
开发:李伟 开发:李伟
*/ */
var _ comm.IParkour = (*Parkour)(nil)
func NewModule() core.IModule { func NewModule() core.IModule {
m := new(Parkour) m := new(Parkour)
return m return m

View File

@ -21,6 +21,9 @@ import (
描述:熊猫武馆 主系统 打桩 以及武馆相关数据管理 描述:熊猫武馆 主系统 打桩 以及武馆相关数据管理
开发:李伟 开发:李伟
*/ */
var _ comm.IPractice = (*Practice)(nil)
func NewModule() core.IModule { func NewModule() core.IModule {
m := new(Practice) m := new(Practice)
return m return m