解决代码冲突
This commit is contained in:
parent
ef48c7ba0b
commit
0316b398d5
@ -3,7 +3,7 @@ package entity
|
||||
import (
|
||||
"joylink.club/ecs"
|
||||
"joylink.club/rtsssimulation/component"
|
||||
"joylink.club/rtsssimulation/component/component_proto"
|
||||
"joylink.club/rtsssimulation/component/component_data"
|
||||
"joylink.club/rtsssimulation/repository"
|
||||
"joylink.club/rtsssimulation/repository/model/proto"
|
||||
)
|
||||
@ -11,7 +11,7 @@ import (
|
||||
// LoadBalises 加载应答器实体
|
||||
func LoadBalises(w ecs.World) error {
|
||||
data := GetWorldData(w)
|
||||
balises := data.Repo.TransponderList()
|
||||
balises := data.Repo.ResponderList()
|
||||
for _, b := range balises {
|
||||
be := newBaliseEntity(w, b, data)
|
||||
switch b.TransponderType() {
|
||||
@ -36,7 +36,7 @@ func newBaliseEntity(w ecs.World, td *repository.Transponder, worldData *compone
|
||||
entry = w.Entry(w.Create(component.UidType, component.BaliseStateType, component.LinkPositionType, component.KmType))
|
||||
component.UidType.SetValue(entry, component.Uid{Id: uid})
|
||||
component.BaliseStateType.Set(entry, &component.BaliseState{})
|
||||
component.LinkPositionType.SetValue(entry, component_proto.LinkPosition{
|
||||
component.LinkPositionType.SetValue(entry, component_data.LinkPosition{
|
||||
LinkId: td.LinkPosition().Link().Id(),
|
||||
Offset: td.LinkPosition().Offset(),
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user