configData

package
v0.0.0-...-bd0de05 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanAcceptTaskListCnf

func CanAcceptTaskListCnf(
	tlType proto.TaskListType, talentType proto.TalentType, curLv int32,
) (xlsxTable.TaskListTableRow, bool)

func ConsumableKeyToPbType

func ConsumableKeyToPbType(key string) (t proto.NFTConsumableType, err error)

func GameValueById

func GameValueById(id int32) (xlsxTable.GameValueTable, error)

func GetAttributeId

func GetAttributeId(key AttributeKey) (int32, bool)

func GetEnergyDefineData

func GetEnergyDefineData() (defCurEnergy, defMaxEnergy float32)

func GetEnergyRecoverCoefficient

func GetEnergyRecoverCoefficient() float32

精力值每分钟恢复系数

func GetEnergyTakeCoefficient

func GetEnergyTakeCoefficient() float32

精力值 扣除系数

func GetHomeAnimalListLimit

func GetHomeAnimalListLimit() int

func GetMaxRecoverEnergy

func GetMaxRecoverEnergy() float32

func GetRewardItems

func GetRewardItems(rewardId int32) (rewardItems []*proto.ItemBaseInfo, err error)

func GetTalentNodeGainsByLevel

func GetTalentNodeGainsByLevel(nodeId, curLv uint32) (*xlsxTable.TalentGainLevelData, error)

func GetTaskListReward

func GetTaskListReward(taskListId int32) (*xlsxTable.TaskReward, error)

func GetTaskReward

func GetTaskReward(taskId int32) (*xlsxTable.TaskReward, error)

func GetUserBirthMap

func GetUserBirthMap() int32

func GetUserBirthPosition

func GetUserBirthPosition() proto.Vector3

func GetUserDefaultHp

func GetUserDefaultHp() (defHp int32)

func Init

func Init() error

func ItemEatableCnfById

func ItemEatableCnfById(cid int32) *xlsxTable.ItemEatableRow

func RoleCurrentExpLimit

func RoleCurrentExpLimit() int32

func ToServiceSubType

func ToServiceSubType(subTypeStr string) proto.SceneServiceSubType

Types

type AttributeKey

type AttributeKey string
const (
	CollectionLv    AttributeKey = "CollectionLv"
	CombatLv        AttributeKey = "CombatLv"
	FarmingLv       AttributeKey = "FarmingLv"
	HP              AttributeKey = "HP"
	MaxHP           AttributeKey = "MaxHP"
	GearAvailableLv AttributeKey = "GearAvailableLv"
	Energy          AttributeKey = "Energy"
	MaxEnergy       AttributeKey = "MaxEnergy"
)

type ConfigDataManager

type ConfigDataManager struct {
	EntityAttributeCnfById   map[uint32]xlsxTable.EntityAttributeRow
	EntityAttributeCnfByName map[string]xlsxTable.EntityAttributeRow
	// contains filtered or unexported fields
}

func ConfigMgr

func ConfigMgr() *ConfigDataManager

func (*ConfigDataManager) AllReward

func (mgr *ConfigDataManager) AllReward() map[int32]xlsxTable.RewardTableRow

func (*ConfigDataManager) AllSceneArea

func (mgr *ConfigDataManager) AllSceneArea() []xlsxTable.SceneAreaRow

func (*ConfigDataManager) AllTaskCnfs

func (mgr *ConfigDataManager) AllTaskCnfs() map[int32]xlsxTable.TaskTableRow

func (*ConfigDataManager) ChatCnfByType

func (mgr *ConfigDataManager) ChatCnfByType(chatType proto.ChatChannelType) *xlsxTable.ChatTableRow

func (*ConfigDataManager) DailyTaskRateLimit

func (mgr *ConfigDataManager) DailyTaskRateLimit() int32

func (*ConfigDataManager) EntityAttributeById

func (mgr *ConfigDataManager) EntityAttributeById(id uint32) (row *xlsxTable.EntityAttributeRow, exist bool)

func (*ConfigDataManager) EntityAttributeByName

func (mgr *ConfigDataManager) EntityAttributeByName(name string) (row *xlsxTable.EntityAttributeRow, exist bool)

func (*ConfigDataManager) EntityAttributeCnfList

func (mgr *ConfigDataManager) EntityAttributeCnfList() (list []xlsxTable.EntityAttributeRow)

func (*ConfigDataManager) GetMasterNode

func (mgr *ConfigDataManager) GetMasterNode(
	talentType proto.TalentType, layer uint32,
) *xlsxTable.TalentTreeRow

func (*ConfigDataManager) GetSceneArea

func (*ConfigDataManager) GetSlotCnf

func (mgr *ConfigDataManager) GetSlotCnf(position, lv int32) *xlsxTable.SlotLvTableRow

func (*ConfigDataManager) ItemCnfById

func (mgr *ConfigDataManager) ItemCnfById(cid int32) *xlsxTable.ItemTable

func (*ConfigDataManager) RewardCnfById

func (mgr *ConfigDataManager) RewardCnfById(id int32) *xlsxTable.RewardTableRow

func (*ConfigDataManager) RewardTaskListRateMax

func (mgr *ConfigDataManager) RewardTaskListRateMax() int32

func (*ConfigDataManager) RewardTaskListRateMin

func (mgr *ConfigDataManager) RewardTaskListRateMin() int32

func (*ConfigDataManager) RoleCnfById

func (mgr *ConfigDataManager) RoleCnfById(roleId uint32) *xlsxTable.RoleTableRow

func (*ConfigDataManager) RoleCnfList

func (mgr *ConfigDataManager) RoleCnfList(roleId uint32) (list []xlsxTable.RoleTableRow)

func (*ConfigDataManager) TalentNodeById

func (mgr *ConfigDataManager) TalentNodeById(id int32) *xlsxTable.TalentTreeRow

func (*ConfigDataManager) TaskCnfById

func (mgr *ConfigDataManager) TaskCnfById(id int32) *xlsxTable.TaskTableRow

func (*ConfigDataManager) TaskListCnfById

func (mgr *ConfigDataManager) TaskListCnfById(id int32) *xlsxTable.TaskListTableRow

type LoadFunc

type LoadFunc struct {
	Name string
	F    func() error
}

Jump to

Keyboard shortcuts

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