mirror of
https://github.com/Luzifer/sii.git
synced 2024-10-18 05:14:19 +00:00
21 lines
443 B
Go
21 lines
443 B
Go
|
package sii
|
||
|
|
||
|
func init() {
|
||
|
RegisterBlock(&GPSWaypointStorage{})
|
||
|
}
|
||
|
|
||
|
type GPSWaypointStorage struct {
|
||
|
NavNodePosition [3]float32 `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 }
|