12 lines
253 B
Go
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))
|
|
}
|