14 lines
422 B
Go
14 lines
422 B
Go
package entities
|
|
|
|
import (
|
|
"joylink.club/ecs"
|
|
"joylink.club/rtsssimulation/deprecated/system"
|
|
)
|
|
|
|
func CreateEmpsCircuitEntity(w ecs.World, empsCircuitId string) *ecs.Entry {
|
|
e := w.Create(system.EntityIdentityComponent, system.EmpsCircuitStateComponent)
|
|
system.EntityIdentityComponent.Set(e, &system.EntityIdentity{Id: empsCircuitId})
|
|
system.EmpsCircuitStateComponent.Set(e, system.NewEmpsCircuitState())
|
|
return e
|
|
}
|