From 529017d54bb86872ecbe908d216d0b48fe31b8a8 Mon Sep 17 00:00:00 2001 From: xzb <223@qq.com> Date: Fri, 15 Sep 2023 13:50:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8C=E6=9C=BAzdj9=E9=81=93=E5=B2=94?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entities/common_entity.go | 4 ++-- entities/relay_entity.go | 2 +- entities/switch_entity.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/entities/common_entity.go b/entities/common_entity.go index 2c93013..5f040f9 100644 --- a/entities/common_entity.go +++ b/entities/common_entity.go @@ -8,14 +8,14 @@ import ( "joylink.club/rtsssimulation/umi" ) -// 创建模型仓库实体 +// CreateModelStorageEntity 创建模型仓库实体 func CreateModelStorageEntity(w ecs.World, modelManager umi.IModelManager) *ecs.Entry { e := w.Create(system.ModelStorageComponent) system.ModelStorageComponent.Set(e, &system.ModelStorageRef{ModelManager: modelManager}) return e } -// 创建系统时钟实体 +// CreateSystemTimerEntity 创建系统时钟实体 func CreateSystemTimerEntity(w ecs.World, systemTime time.Time) *ecs.Entry { e := w.Create(system.SystemTimerComponent) system.SystemTimerComponent.Set(e, system.NewSystemTimer(&systemTime)) diff --git a/entities/relay_entity.go b/entities/relay_entity.go index 9b65a19..817eadc 100644 --- a/entities/relay_entity.go +++ b/entities/relay_entity.go @@ -5,7 +5,7 @@ import ( "joylink.club/rtsssimulation/system" ) -// 创建继电器实体 +// CreateRelayEntity 创建继电器实体 func CreateRelayEntity(w ecs.World, relayId string) *ecs.Entry { e := w.Create(system.EntityIdentityComponent, system.RelayStateComponent) system.EntityIdentityComponent.Set(e, &system.EntityIdentity{Id: relayId}) diff --git a/entities/switch_entity.go b/entities/switch_entity.go index f262664..11e72b6 100644 --- a/entities/switch_entity.go +++ b/entities/switch_entity.go @@ -5,7 +5,7 @@ import ( "joylink.club/rtsssimulation/system" ) -// 双机zdj9 +// CreateSwitch2jzdj9Entity 双机zdj9 // 默认定位 func CreateSwitch2jzdj9Entity(w ecs.World, switchId string) *ecs.Entry { e := w.Create(system.EntityIdentityComponent, system.Switch2jZdj9StateComponent, system.MovableObject1Component, system.MovableObject2Component)