15 lines
523 B
Go
15 lines
523 B
Go
package entities
|
|
|
|
import (
|
|
"joylink.club/ecs"
|
|
"joylink.club/rtsssimulation/system"
|
|
)
|
|
|
|
func CreateSignal3XH1Entity(w ecs.World, signalId string) *ecs.Entry {
|
|
e := w.Create(system.EntityIdentityComponent, system.Signal3XH1StateComponent, system.Signal3XH1FilamentStateComponent)
|
|
system.EntityIdentityComponent.Set(e, &system.EntityIdentity{Id: signalId})
|
|
system.Signal3XH1StateComponent.Set(e, system.NewSignal3XH1State())
|
|
system.Signal3XH1FilamentStateComponent.Set(e, system.NewSignal3XH1FilamentState())
|
|
return e
|
|
}
|