Documentation ¶
Index ¶
- func CanAcceptTaskListCnf(tlType proto.TaskListType, talentType proto.TalentType, curLv int32) (xlsxTable.TaskListTableRow, bool)
- func ConsumableKeyToPbType(key string) (t proto.NFTConsumableType, err error)
- func GameValueById(id int32) (xlsxTable.GameValueTable, error)
- func GetAttributeId(key AttributeKey) (int32, bool)
- func GetEnergyDefineData() (defCurEnergy, defMaxEnergy float32)
- func GetEnergyRecoverCoefficient() float32
- func GetEnergyTakeCoefficient() float32
- func GetHomeAnimalListLimit() int
- func GetMaxRecoverEnergy() float32
- func GetRewardItems(rewardId int32) (rewardItems []*proto.ItemBaseInfo, err error)
- func GetTalentNodeGainsByLevel(nodeId, curLv uint32) (*xlsxTable.TalentGainLevelData, error)
- func GetTaskListReward(taskListId int32) (*xlsxTable.TaskReward, error)
- func GetTaskReward(taskId int32) (*xlsxTable.TaskReward, error)
- func GetUserBirthMap() int32
- func GetUserBirthPosition() proto.Vector3
- func GetUserDefaultHp() (defHp int32)
- func Init() error
- func ItemEatableCnfById(cid int32) *xlsxTable.ItemEatableRow
- func RoleCurrentExpLimit() int32
- func ToServiceSubType(subTypeStr string) proto.SceneServiceSubType
- type AttributeKey
- type ConfigDataManager
- func (mgr *ConfigDataManager) AllReward() map[int32]xlsxTable.RewardTableRow
- func (mgr *ConfigDataManager) AllSceneArea() []xlsxTable.SceneAreaRow
- func (mgr *ConfigDataManager) AllTaskCnfs() map[int32]xlsxTable.TaskTableRow
- func (mgr *ConfigDataManager) ChatCnfByType(chatType proto.ChatChannelType) *xlsxTable.ChatTableRow
- func (mgr *ConfigDataManager) DailyTaskRateLimit() int32
- func (mgr *ConfigDataManager) EntityAttributeById(id uint32) (row *xlsxTable.EntityAttributeRow, exist bool)
- func (mgr *ConfigDataManager) EntityAttributeByName(name string) (row *xlsxTable.EntityAttributeRow, exist bool)
- func (mgr *ConfigDataManager) EntityAttributeCnfList() (list []xlsxTable.EntityAttributeRow)
- func (mgr *ConfigDataManager) GetMasterNode(talentType proto.TalentType, layer uint32) *xlsxTable.TalentTreeRow
- func (mgr *ConfigDataManager) GetSceneArea(id int32) (xlsxTable.SceneAreaRow, proto.SceneServiceSubType, bool)
- func (mgr *ConfigDataManager) GetSlotCnf(position, lv int32) *xlsxTable.SlotLvTableRow
- func (mgr *ConfigDataManager) ItemCnfById(cid int32) *xlsxTable.ItemTable
- func (mgr *ConfigDataManager) RewardCnfById(id int32) *xlsxTable.RewardTableRow
- func (mgr *ConfigDataManager) RewardTaskListRateMax() int32
- func (mgr *ConfigDataManager) RewardTaskListRateMin() int32
- func (mgr *ConfigDataManager) RoleCnfById(roleId uint32) *xlsxTable.RoleTableRow
- func (mgr *ConfigDataManager) RoleCnfList(roleId uint32) (list []xlsxTable.RoleTableRow)
- func (mgr *ConfigDataManager) TalentNodeById(id int32) *xlsxTable.TalentTreeRow
- func (mgr *ConfigDataManager) TaskCnfById(id int32) *xlsxTable.TaskTableRow
- func (mgr *ConfigDataManager) TaskListCnfById(id int32) *xlsxTable.TaskListTableRow
- type LoadFunc
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 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 GetUserDefaultHp ¶
func GetUserDefaultHp() (defHp int32)
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 (mgr *ConfigDataManager) GetSceneArea(id int32) (xlsxTable.SceneAreaRow, proto.SceneServiceSubType, bool)
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
Click to show internal directories.
Click to hide internal directories.