1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-10-18 05:14:19 +00:00

Add wheels

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-12-23 21:56:00 +01:00
parent 9c22ab945c
commit 57f6d846b5
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -0,0 +1,22 @@
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 }