1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-10-18 05:14:19 +00:00
sii/block_gps_waypoint_storage.go
Knut Ahlers 9c22ab945c
Fix: Looks like SOME positions are arrays of int 😭
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-12-23 21:32:10 +01:00

20 lines
439 B
Go

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 }