Documentation ¶
Overview ¶
Generated by github.com/davyxu/tabtoy Version: 2.8.9 DO NOT EDIT!!
Index ¶
- Variables
- type ActorType
- type AttackParam
- type Config
- type ConfigTable
- func (self *ConfigTable) Load(filename string) error
- func (self *ConfigTable) RegisterIndexEntry(name string, indexCallback func(*ConfigTable) error, ...)
- func (self *ConfigTable) RegisterPostEntry(callback func(*ConfigTable) error)
- func (self *ConfigTable) RegisterPreEntry(callback func(*ConfigTable) error)
- type Prop
- type SampleDefine
- type Vec2
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ActorTypeMapperValueByName = map[string]int32{ "Leader": 0, "Monkey": 1, "Pig": 2, "Hammer": 3, } ActorTypeMapperNameByValue = map[int32]string{ 0: "Leader", 1: "Monkey", 2: "Pig", 3: "Hammer", } )
Functions ¶
This section is empty.
Types ¶
type ConfigTable ¶
type ConfigTable struct { // 表格原始数据 Config SampleByID map[int64]*SampleDefine SampleByName map[string]*SampleDefine // contains filtered or unexported fields }
Config 访问接口
func (*ConfigTable) RegisterIndexEntry ¶
func (self *ConfigTable) RegisterIndexEntry(name string, indexCallback func(*ConfigTable) error, clearCallback func(*ConfigTable) error)
注册外部索引入口, 索引回调, 清空回调
func (*ConfigTable) RegisterPostEntry ¶
func (self *ConfigTable) RegisterPostEntry(callback func(*ConfigTable) error)
注册所有完成时回调
func (*ConfigTable) RegisterPreEntry ¶
func (self *ConfigTable) RegisterPreEntry(callback func(*ConfigTable) error)
注册加载前回调
type SampleDefine ¶
type SampleDefine struct { //唯一ID ID int64 //名称 Name string `自定义tag:"支持go的struct tag"` //图标ID IconID int32 //攻击率 NumericalRate float32 //物品id ItemID int32 //BuffID BuffID []int32 Pos *Vec2 //类型 Type ActorType //技能ID列表 SkillID []int32 //攻击参数 AttackParam *AttackParam //单结构解析 SingleStruct *Prop //字符串结构 StrStruct []*Prop }
Defined in table: Sample
Click to show internal directories.
Click to hide internal directories.