rts-sim-module/component/light.go

23 lines
343 B
Go
Raw Normal View History

2023-10-11 13:22:14 +08:00
package component
import "joylink.club/ecs"
// LightDrive 灯驱动
type LightDrive struct {
Td bool
}
// 灯色标签
var (
LdTag = ecs.NewTag() //绿
HdTag = ecs.NewTag() //红
UdTag = ecs.NewTag() //黄
2023-10-11 13:46:34 +08:00
BdTag = ecs.NewTag() //白
2023-10-11 13:22:14 +08:00
AdTag = ecs.NewTag() //蓝
)
// 组件
var (
LightDriveType = ecs.NewComponentType[LightDrive]()
)