1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-12-21 00:21:15 +00:00
sii/block_license_plate_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

26 lines
506 B
Go

package sii
func init() {
RegisterBlock(&LicensePlateData{})
}
type LicensePlateData struct {
Type Ptr `sii:"type"`
Templates []string `sii:"templates"`
Def0 []string `sii:"def0"`
Def1 []string `sii:"def1"`
Def2 []string `sii:"def2"`
Def3 []string `sii:"def3"`
blockName string
}
func (LicensePlateData) Class() string { return "license_plate_data" }
func (l *LicensePlateData) Init(class, name string) {
l.blockName = name
}
func (l LicensePlateData) Name() string { return l.blockName }