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

21 lines
397 B
Go
Raw Permalink Normal View History

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 }