@@ -132,11 +132,11 @@ public static Task Init(Assembly assembly = null)
132132 }
133133 else
134134 {
135- throw new Exception ( $ "comp: { type . FullName } 未绑定actor类型 ") ;
135+ throw new Exception ( $ "component:[ { type . FullName } ] the actor type is not bound ") ;
136136 }
137137 }
138138
139- LogHelper . Info ( "初始化组件注册完成 " ) ;
139+ LogHelper . Info ( "initialize component registration complete " ) ;
140140 return Task . CompletedTask ;
141141 }
142142
@@ -167,16 +167,16 @@ public static async Task ActiveGlobalComponents()
167167
168168 if ( actorType > GlobalConst . ActorTypeSeparator )
169169 {
170- LogHelper . Debug ( $ "激活全局Actor : { actorType } ") ;
170+ LogHelper . Debug ( $ "activate the global actor : { actorType } ") ;
171171 await ActorManager . GetOrNew ( ActorIdGenerator . GetActorId ( actorType ) ) ;
172172 }
173173 }
174174
175- LogHelper . Debug ( "激活全局组件并检测组件是否都包含Agent实现完成 " ) ;
175+ LogHelper . Debug ( "Activate the global component and check if the components all contain the Agent implementation completion " ) ;
176176 }
177177 catch ( Exception )
178178 {
179- LogHelper . Error ( "激活全局组件并检测组件是否都包含Agent实现失败 " ) ;
179+ LogHelper . Error ( "Activate the global component and detect if the components all contain the agent implementation failed " ) ;
180180 throw ;
181181 }
182182 }
@@ -242,7 +242,7 @@ internal static async Task ActiveComponents(IActor actor, Func<Type, bool> predi
242242 }
243243 else
244244 {
245- LogHelper . Fatal ( $ "获取不属于此actor: { actor . Type } 的组件 ") ;
245+ LogHelper . Fatal ( $ "get an actor that doesn't belong to this actor: [ { actor . Type } ] components ") ;
246246 }
247247 }
248248
@@ -256,12 +256,12 @@ internal static BaseComponent CreateComponent(Actor actor, Type compType)
256256 {
257257 if ( ! ActorComponentDic . TryGetValue ( actor . Type , out var compTypes ) )
258258 {
259- throw new Exception ( $ "获取不属于此actor: { actor . Type } 的Component: { compType . FullName } ") ;
259+ throw new Exception ( $ "get an actor that doesn't belong to this actor: [ { actor . Type } ] component:[ { compType . FullName } ] ") ;
260260 }
261261
262262 if ( ! compTypes . Contains ( compType ) )
263263 {
264- throw new Exception ( $ "获取不属于此actor: { actor . Type } 的Component: { compType . FullName } ") ;
264+ throw new Exception ( $ "get an actor that doesn't belong to this actor: [ { actor . Type } ] component:[ { compType . FullName } ] ") ;
265265 }
266266
267267 var comp = ( BaseComponent ) Activator . CreateInstance ( compType ) ;
0 commit comments