rts-sim-module/component/light.go
2023-10-12 16:21:55 +08:00

27 lines
483 B
Go

package component
import "joylink.club/ecs"
// LightDrive 灯驱动
type LightDrive struct {
Td bool
}
// DsTag 灯显示标签定义
type DsTag = ecs.IComponentType
// 灯标签
var (
LdTag DsTag = ecs.NewTag() //绿
HdTag = ecs.NewTag() //红
UdTag = ecs.NewTag() //黄
BdTag = ecs.NewTag() //白
AdTag = ecs.NewTag() //蓝
FdTag = ecs.NewTag() //封,封灯显示
)
// 组件
var (
LightDriveType = ecs.NewComponentType[LightDrive]()
)