rts-sim-module/entity/light.go

12 lines
253 B
Go
Raw Normal View History

2023-10-11 13:22:14 +08:00
package entity
2023-10-11 13:38:33 +08:00
import (
"joylink.club/ecs"
"joylink.club/rtsssimulation/component"
)
2023-10-11 13:22:14 +08:00
2023-10-11 13:38:33 +08:00
// NewLightEntity 创建无色灯实体
func NewLightEntity(w ecs.World) *ecs.Entry {
return w.Entry(w.Create(component.LightDriveType, component.BitStateType))
2023-10-11 13:22:14 +08:00
}