mirror of
https://github.com/Luzifer/sii.git
synced 2024-12-20 16:11:17 +00:00
Add VehicleAccessory
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
04dda4ab4d
commit
6b9c7c1493
1 changed files with 20 additions and 0 deletions
20
block_vehicle_accessory.go
Normal file
20
block_vehicle_accessory.go
Normal file
|
@ -0,0 +1,20 @@
|
|||
package sii
|
||||
|
||||
func init() {
|
||||
RegisterBlock(&VehicleAccessory{})
|
||||
}
|
||||
|
||||
type VehicleAccessory struct {
|
||||
Wear float32 `sii:"wear"`
|
||||
DataPath string `sii:"data_path"`
|
||||
|
||||
blockName string
|
||||
}
|
||||
|
||||
func (VehicleAccessory) Class() string { return "vehicle_accessory" }
|
||||
|
||||
func (v *VehicleAccessory) Init(class, name string) {
|
||||
v.blockName = name
|
||||
}
|
||||
|
||||
func (v VehicleAccessory) Name() string { return v.blockName }
|
Loading…
Reference in a new issue