1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-10-18 13:24:20 +00:00
sii/block_police_ctrl.go

22 lines
440 B
Go
Raw Normal View History

package sii
func init() {
RegisterBlock(&PoliceCtrl{})
}
type PoliceCtrl struct {
OffenceTimer []float32 `sii:"offence_timer"`
OffenceCounter []int64 `sii:"offence_counter"`
OffenceValid []bool `sii:"offence_valid"`
blockName string
}
func (PoliceCtrl) Class() string { return "police_ctrl" }
func (p *PoliceCtrl) Init(class, name string) {
p.blockName = name
}
func (p PoliceCtrl) Name() string { return p.blockName }