package entities import ( "joylink.club/ecs" "joylink.club/rtsssimulation/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 }