1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-12-21 00:21:15 +00:00
sii/block_city_data.go
Knut Ahlers 719e6eab6a
Add CityData and LicensePlateData base blocks
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-12-24 15:35:08 +01:00

28 lines
600 B
Go

package sii
func init() {
RegisterBlock(&CityData{})
}
type CityData struct {
CityName string `sii:"city_name"`
CityNameLocalized string `sii:"city_name_localized"`
Country Ptr `sii:"country"`
MapXOffsets []int64 `sii:"map_x_offsets"`
MapYOffsets []int64 `sii:"map_y_offsets"`
VehicleBrands []string `sii:"vehicle_brands"`
LicensePlate []Ptr `sii:"license_plate"`
blockName string
}
func (CityData) Class() string { return "city_data" }
func (c *CityData) Init(class, name string) {
c.blockName = name
}
func (c CityData) Name() string { return c.blockName }