mirror of
https://github.com/Luzifer/sii.git
synced 2024-12-21 00:21:15 +00:00
Add wheels
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
9c22ab945c
commit
57f6d846b5
1 changed files with 22 additions and 0 deletions
22
block_vehicle_wheel_accessory.go
Normal file
22
block_vehicle_wheel_accessory.go
Normal 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 }
|
Loading…
Reference in a new issue