26 lines
434 B
Go
26 lines
434 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() //蓝
|
|
)
|
|
|
|
// 组件
|
|
var (
|
|
LightDriveType = ecs.NewComponentType[LightDrive]()
|
|
)
|