2023-10-11 13:22:14 +08:00
|
|
|
package component
|
|
|
|
|
|
|
|
import "joylink.club/ecs"
|
|
|
|
|
|
|
|
// LightDrive 灯驱动
|
|
|
|
type LightDrive struct {
|
|
|
|
Td bool
|
|
|
|
}
|
|
|
|
|
2023-10-12 16:21:55 +08:00
|
|
|
// DsTag 灯显示标签定义
|
2023-10-12 11:06:20 +08:00
|
|
|
type DsTag = ecs.IComponentType
|
|
|
|
|
2023-10-12 16:21:55 +08:00
|
|
|
// 灯标签
|
2023-10-11 13:22:14 +08:00
|
|
|
var (
|
2023-10-12 11:06:20 +08:00
|
|
|
LdTag DsTag = ecs.NewTag() //绿
|
|
|
|
HdTag = ecs.NewTag() //红
|
|
|
|
UdTag = ecs.NewTag() //黄
|
|
|
|
BdTag = ecs.NewTag() //白
|
|
|
|
AdTag = ecs.NewTag() //蓝
|
2023-10-12 15:13:13 +08:00
|
|
|
FdTag = ecs.NewTag() //封,封灯显示
|
2023-10-11 13:22:14 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
// 组件
|
|
|
|
var (
|
|
|
|
LightDriveType = ecs.NewComponentType[LightDrive]()
|
|
|
|
)
|