读取配置 删除不用的代码
This commit is contained in:
parent
649245fb5d
commit
4148c1ed26
@ -372,8 +372,8 @@ const (
|
|||||||
Rtype11 TaskType = 11 //赠送X次友情点
|
Rtype11 TaskType = 11 //赠送X次友情点
|
||||||
Rtype12 TaskType = 12 //使用好友助战英雄xx次
|
Rtype12 TaskType = 12 //使用好友助战英雄xx次
|
||||||
Rtype13 TaskType = 13 //更换X次助战英雄
|
Rtype13 TaskType = 13 //更换X次助战英雄
|
||||||
//Rtype14 TaskType = 14 //累计xx次普通招募
|
Rtype14 TaskType = 14 //累计xx次普通招募
|
||||||
//Rtype15 TaskType = 15 //累计xx次阵营招募
|
Rtype15 TaskType = 15 //累计xx次阵营招募
|
||||||
Rtype16 TaskType = 16 //招募获得xx品质英雄xx个
|
Rtype16 TaskType = 16 //招募获得xx品质英雄xx个
|
||||||
Rtype17 TaskType = 17 //普通招募十连,获得xx个以上xx星英雄
|
Rtype17 TaskType = 17 //普通招募十连,获得xx个以上xx星英雄
|
||||||
Rtype18 TaskType = 18 //xx次普通招募
|
Rtype18 TaskType = 18 //xx次普通招募
|
||||||
|
@ -51,7 +51,8 @@ func (this *MCompConfigure) Init(service core.IService, module core.IModule, com
|
|||||||
this._sign = make(map[int32]*cfg.GameSignData, 0)
|
this._sign = make(map[int32]*cfg.GameSignData, 0)
|
||||||
configure.RegisterConfigure(game_drop, cfg.NewGameDrop, this.LoadDropData)
|
configure.RegisterConfigure(game_drop, cfg.NewGameDrop, this.LoadDropData)
|
||||||
configure.RegisterConfigure(game_sign, cfg.NewGameSign, this.LoadSignData)
|
configure.RegisterConfigure(game_sign, cfg.NewGameSign, this.LoadSignData)
|
||||||
|
_da, err := this.GetItemConfigureData("10009")
|
||||||
|
fmt.Printf("%v\n", _da)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
func (this *MCompConfigure) LoadConfigure(name string, fn interface{}) (err error) {
|
func (this *MCompConfigure) LoadConfigure(name string, fn interface{}) (err error) {
|
||||||
|
@ -56,7 +56,7 @@ func (this *apiComp) UseGift(session comm.IUserSession, req *pb.LibraryUseGiftRe
|
|||||||
N: v,
|
N: v,
|
||||||
})
|
})
|
||||||
|
|
||||||
conf, err := this.configure.GetItemConfigureData(k)
|
conf, err := this.module.configure.GetItemConfigureData(k)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v", err)
|
||||||
return
|
return
|
||||||
|
@ -15,7 +15,6 @@ const (
|
|||||||
game_libraryhistory = "game_libraryhistory.json" // 往事id 对应的奖励
|
game_libraryhistory = "game_libraryhistory.json" // 往事id 对应的奖励
|
||||||
game_libraryfavor = "game_libraryfavor.json" // 英雄好感度升级所需的经验
|
game_libraryfavor = "game_libraryfavor.json" // 英雄好感度升级所需的经验
|
||||||
game_librarystory = "game_librarystory.json" // 羁绊id对应剧情奖励
|
game_librarystory = "game_librarystory.json" // 羁绊id对应剧情奖励
|
||||||
//game_favornum = "game_favornum.json" // 羁绊id对应经验
|
|
||||||
)
|
)
|
||||||
|
|
||||||
///配置管理基础组件
|
///配置管理基础组件
|
||||||
@ -33,7 +32,6 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
|
|||||||
game_libraryhistory: cfg.NewGameLibraryHistory,
|
game_libraryhistory: cfg.NewGameLibraryHistory,
|
||||||
game_libraryfavor: cfg.NewGameLibraryFavor,
|
game_libraryfavor: cfg.NewGameLibraryFavor,
|
||||||
game_librarystory: cfg.NewGameLibraryStory,
|
game_librarystory: cfg.NewGameLibraryStory,
|
||||||
//game_favornum: cfg.NewGameFavorNum,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
this.fetter = make(map[int64]*cfg.GameLibraryFetterData, 0)
|
this.fetter = make(map[int64]*cfg.GameLibraryFetterData, 0)
|
||||||
@ -141,15 +139,3 @@ func (this *configureComp) GetLibraryStory(fid int32) (data *cfg.GameLibraryStor
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取羁绊英雄经验数据
|
|
||||||
// func (this *configureComp) GetFavorNum(cid string) (data *cfg.GameFavorNumData) {
|
|
||||||
// if v, err := this.GetConfigure(game_favornum); err == nil {
|
|
||||||
// if configure, ok := v.(*cfg.GameFavorNum); ok {
|
|
||||||
// data = configure.Get(cid)
|
|
||||||
// }
|
|
||||||
// } else {
|
|
||||||
// log.Errorf("GetLibraryStory conf err:%v", err)
|
|
||||||
// }
|
|
||||||
// return
|
|
||||||
// }
|
|
||||||
|
Loading…
Reference in New Issue
Block a user