1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-12-21 00:21:15 +00:00
sii/block_vehicle_wheel_accessory.go
Knut Ahlers 57f6d846b5
Add wheels
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-12-23 21:56:00 +01:00

22 lines
519 B
Go

package sii
func init() {
RegisterBlock(&VehicleWheelAccessory{})
}
type VehicleWheelAccessory struct {
Offset int64 `sii:"offset"`
PaintColor [3]float32 `sii:"paint_color"`
Wear float32 `sii:"wear"`
DataPath string `sii:"data_path"`
blockName string
}
func (VehicleWheelAccessory) Class() string { return "vehicle_wheel_accessory" }
func (v *VehicleWheelAccessory) Init(class, name string) {
v.blockName = name
}
func (v VehicleWheelAccessory) Name() string { return v.blockName }