1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-12-21 00:21:15 +00:00
sii/block_transport_data.go
Knut Ahlers ec37bca996
Add GameProgress and TransportData blocks
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-12-11 16:48:59 +01:00

24 lines
553 B
Go

package sii
func init() {
RegisterBlock(&TransportData{})
}
type TransportData struct {
Distance int64 `sii:"distance"`
Time int64 `sii:"time"`
Money int64 `sii:"money"`
CountPerADR []int64 `sii:"count_per_adr"`
Docks []string `sii:"docks"`
CountPerDock []int64 `sii:"count_per_dock"`
blockName string
}
func (TransportData) Class() string { return "transport_data" }
func (t *TransportData) Init(class, name string) {
t.blockName = name
}
func (t TransportData) Name() string { return t.blockName }