14 lines
346 B
Go
14 lines
346 B
Go
|
package entities
|
||
|
|
||
|
import (
|
||
|
"joylink.club/ecs"
|
||
|
"joylink.club/rtsssimulation/system"
|
||
|
)
|
||
|
|
||
|
// 双机zdj9
|
||
|
func CreateSwitch2jzdj9Entity(w ecs.World, switchId string) *ecs.Entry {
|
||
|
e := w.Create(system.EntityIdentityComponent, system.Switch2jZdj9StateComponent)
|
||
|
system.EntityIdentityComponent.Set(e, &system.EntityIdentity{Id: switchId})
|
||
|
return e
|
||
|
}
|