1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-12-21 00:21:15 +00:00
sii/block_company_permanent.go
Knut Ahlers 6202f0dedf
Add CargoData and CompanyPermanent base data
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-12-24 15:01:27 +01:00

21 lines
442 B
Go

package sii
func init() {
RegisterBlock(&CompanyPermanent{})
}
type CompanyPermanent struct {
CompanyName string `sii:"name"`
SortName string `sii:"sort_name"`
TrailerLook Ptr `sii:"trailer_look"`
blockName string
}
func (CompanyPermanent) Class() string { return "company_permanent" }
func (c *CompanyPermanent) Init(class, name string) {
c.blockName = name
}
func (c CompanyPermanent) Name() string { return c.blockName }