1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-12-21 00:21:15 +00:00
sii/block_gps_waypoint_storage.go

21 lines
439 B
Go
Raw Permalink Normal View History

package sii
func init() {
RegisterBlock(&GPSWaypointStorage{})
}
type GPSWaypointStorage struct {
NavNodePosition [3]int64 `sii:"nav_node_position"`
Direction Ptr `sii:"direction"`
blockName string
}
func (GPSWaypointStorage) Class() string { return "gps_waypoint_storage" }
func (g *GPSWaypointStorage) Init(class, name string) {
g.blockName = name
}
func (g GPSWaypointStorage) Name() string { return g.blockName }