23 lines
343 B
Go
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]()
|
|
)
|