cfg

package
v0.0.0-...-bfc2f26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityCfg

type ActivityCfg struct {
	pb.BaseActivityCfg                        // 活动基础数据
	Quests             []*QuestCfg            // 一个活动可以包含N个子任务
	Properties         map[string]interface{} `json:"Properties"` // 动态属性
}

活动配置数据

func (*ActivityCfg) GetQuestCfg

func (this *ActivityCfg) GetQuestCfg(cfgId int32) *QuestCfg

type ActivityCfgMgr

type ActivityCfgMgr struct {
	// contains filtered or unexported fields
}

活动配置数据管理

func GetActivityCfgMgr

func GetActivityCfgMgr() *ActivityCfgMgr

func (*ActivityCfgMgr) GetActivityCfg

func (this *ActivityCfgMgr) GetActivityCfg(cfgId int32) *ActivityCfg

func (*ActivityCfgMgr) GetConditionMgr

func (this *ActivityCfgMgr) GetConditionMgr() *ConditionMgr

func (*ActivityCfgMgr) GetProgressMgr

func (this *ActivityCfgMgr) GetProgressMgr() *ProgressMgr

func (*ActivityCfgMgr) Load

func (this *ActivityCfgMgr) Load(fileName string) bool

加载任务配置数据

func (*ActivityCfgMgr) Range

func (this *ActivityCfgMgr) Range(f func(activityCfg *ActivityCfg) bool)

func (*ActivityCfgMgr) SetConditionMgr

func (this *ActivityCfgMgr) SetConditionMgr(conditionMgr *ConditionMgr)

func (*ActivityCfgMgr) SetProgressMgr

func (this *ActivityCfgMgr) SetProgressMgr(progressMgr *ProgressMgr)

type ItemCfgMgr

type ItemCfgMgr struct {
	// contains filtered or unexported fields
}

任务配置数据管理

func GetItemCfgMgr

func GetItemCfgMgr() *ItemCfgMgr

func (*ItemCfgMgr) GetItemCfg

func (this *ItemCfgMgr) GetItemCfg(cfgId int32) *gen.ItemCfgReader

func (*ItemCfgMgr) Load

func (this *ItemCfgMgr) Load(fileName string) bool

type LevelCfgMgr

type LevelCfgMgr struct {
	// contains filtered or unexported fields
}

等级配置数据管理

func GetLevelCfgMgr

func GetLevelCfgMgr() *LevelCfgMgr

func (*LevelCfgMgr) GetMaxLevel

func (this *LevelCfgMgr) GetMaxLevel() int32

func (*LevelCfgMgr) GetNeedExp

func (this *LevelCfgMgr) GetNeedExp(nextLevel int32) int32

func (*LevelCfgMgr) Load

func (this *LevelCfgMgr) Load(fileName string) bool

type QuestCfg

type QuestCfg struct {
	pb.BaseQuestCfg
	Conditions     []*ConditionCfg `json:"Conditions"`  // 条件配置
	ProgressCfg    *ProgressCfg    `json:"ProgressCfg"` // 进度配置
	BaseProperties                 // 动态属性
}

任务配置数据

type QuestCfgMgr

type QuestCfgMgr struct {
	// contains filtered or unexported fields
}

任务配置数据管理

func GetQuestCfgMgr

func GetQuestCfgMgr() *QuestCfgMgr

func (*QuestCfgMgr) GetConditionMgr

func (this *QuestCfgMgr) GetConditionMgr() *ConditionMgr

func (*QuestCfgMgr) GetProgressMgr

func (this *QuestCfgMgr) GetProgressMgr() *ProgressMgr

func (*QuestCfgMgr) GetQuestCfg

func (this *QuestCfgMgr) GetQuestCfg(cfgId int32) *QuestCfg

func (*QuestCfgMgr) Load

func (this *QuestCfgMgr) Load(fileName string) bool

加载任务配置数据

func (*QuestCfgMgr) Range

func (this *QuestCfgMgr) Range(f func(questCfg *QuestCfg) bool)

func (*QuestCfgMgr) SetConditionMgr

func (this *QuestCfgMgr) SetConditionMgr(conditionMgr *ConditionMgr)

func (*QuestCfgMgr) SetProgressMgr

func (this *QuestCfgMgr) SetProgressMgr(progressMgr *ProgressMgr)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL