rts-sim-module/component/iscs_bas_network.go

17 lines
341 B
Go

package component
import (
"joylink.club/ecs"
"joylink.club/rtsssimulation/consts"
)
// NetworkSwitch 交换机
type NetworkSwitch struct {
Normal bool //true-正常
Exception consts.DeviceExceptionEnum //具体异常-通信中断、异常
}
var (
NetworkSwitchType = ecs.NewComponentType[NetworkSwitch]()
)