rts-sim-module/entity/light.go
2023-10-11 13:38:33 +08:00

12 lines
253 B
Go

package entity
import (
"joylink.club/ecs"
"joylink.club/rtsssimulation/component"
)
// NewLightEntity 创建无色灯实体
func NewLightEntity(w ecs.World) *ecs.Entry {
return w.Entry(w.Create(component.LightDriveType, component.BitStateType))
}