19 lines
535 B
Go
19 lines
535 B
Go
package data
|
|
|
|
type SceneMap struct {
|
|
Id int `json:"id"` //索引(ID)
|
|
SceneId int `json:"scene_id"` //场景id
|
|
Seat1Monster int `json:"seat1_monster"` //怪物ID
|
|
IconPos [3]float64 `json:"icon_pos"` //怪物出生坐标
|
|
PatrolPos [][3]float64 `json:"patrol_pos"` //巡逻路径
|
|
LifeTime float64 `json:"lifeTime"` //存在时间(ms)
|
|
}
|
|
|
|
func (data *SceneMap) id() int {
|
|
return data.Id
|
|
}
|
|
|
|
type SceneMapTable struct {
|
|
table[int, *SceneMap]
|
|
}
|