rts-sim-module/component/light.go
2023-10-11 13:24:05 +08:00

23 lines
343 B
Go

package component
import "joylink.club/ecs"
// LightDrive 灯驱动
type LightDrive struct {
Td bool
}
// 灯色标签
var (
LdTag = ecs.NewTag() //绿
HdTag = ecs.NewTag() //红
UdTag = ecs.NewTag() //黄
Bdtag = ecs.NewTag() //白
AdTag = ecs.NewTag() //蓝
)
// 组件
var (
LightDriveType = ecs.NewComponentType[LightDrive]()
)