|
16 | 16 | <meta name="docfx:rel" content="../"> |
17 | 17 |
|
18 | 18 |
|
19 | | - <meta name="docfx:docurl" content="https://github.com/GameFrameX/GameFrameX.Server/new/1.5.1-dev29/apiSpec/new?filename=GameFrameX_Core_Abstractions_Agent_IComponentAgent.md&value=---%0Auid%3A%20GameFrameX.Core.Abstractions.Agent.IComponentAgent%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A"> |
| 19 | + <meta name="docfx:docurl" content="https://github.com/GameFrameX/GameFrameX.Server/new/1.5.1-dev30/apiSpec/new?filename=GameFrameX_Core_Abstractions_Agent_IComponentAgent.md&value=---%0Auid%3A%20GameFrameX.Core.Abstractions.Agent.IComponentAgent%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A"> |
20 | 20 | <meta name="loc:inThisArticle" content="In this article"> |
21 | 21 | <meta name="loc:searchResultsCount" content="{count} results for "{query}""> |
22 | 22 | <meta name="loc:searchNoResults" content="No results for "{query}""> |
@@ -89,7 +89,7 @@ <h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5> |
89 | 89 |
|
90 | 90 |
|
91 | 91 | <h1 id="GameFrameX_Core_Abstractions_Agent_IComponentAgent" data-uid="GameFrameX.Core.Abstractions.Agent.IComponentAgent" class="text-break"> |
92 | | -Interface IComponentAgent <a class="header-action link-secondary" title="View source" href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev29/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L6"><i class="bi bi-code-slash"></i></a> |
| 92 | +Interface IComponentAgent <a class="header-action link-secondary" title="View source" href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev30/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L6"><i class="bi bi-code-slash"></i></a> |
93 | 93 | </h1> |
94 | 94 |
|
95 | 95 | <div class="facts text-secondary"> |
@@ -163,7 +163,7 @@ <h2 class="section" id="properties">Properties |
163 | 163 |
|
164 | 164 | <h3 id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_ActorId" data-uid="GameFrameX.Core.Abstractions.Agent.IComponentAgent.ActorId"> |
165 | 165 | ActorId |
166 | | - <a class="header-action link-secondary" title="View source" href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev29/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L14"><i class="bi bi-code-slash"></i></a> |
| 166 | + <a class="header-action link-secondary" title="View source" href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev30/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L14"><i class="bi bi-code-slash"></i></a> |
167 | 167 | </h3> |
168 | 168 |
|
169 | 169 | <div class="markdown level1 summary"><p>获取Actor的唯一标识 |
@@ -198,7 +198,7 @@ <h4 class="section">Property Value</h4> |
198 | 198 |
|
199 | 199 | <h3 id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_Owner" data-uid="GameFrameX.Core.Abstractions.Agent.IComponentAgent.Owner"> |
200 | 200 | Owner |
201 | | - <a class="header-action link-secondary" title="View source" href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev29/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L22"><i class="bi bi-code-slash"></i></a> |
| 201 | + <a class="header-action link-secondary" title="View source" href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev30/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L22"><i class="bi bi-code-slash"></i></a> |
202 | 202 | </h3> |
203 | 203 |
|
204 | 204 | <div class="markdown level1 summary"><p>获取或设置组件的所有者 |
@@ -233,7 +233,7 @@ <h4 class="section">Property Value</h4> |
233 | 233 |
|
234 | 234 | <h3 id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_OwnerType" data-uid="GameFrameX.Core.Abstractions.Agent.IComponentAgent.OwnerType"> |
235 | 235 | OwnerType |
236 | | - <a class="header-action link-secondary" title="View source" href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev29/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L30"><i class="bi bi-code-slash"></i></a> |
| 236 | + <a class="header-action link-secondary" title="View source" href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev30/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L30"><i class="bi bi-code-slash"></i></a> |
237 | 237 | </h3> |
238 | 238 |
|
239 | 239 | <div class="markdown level1 summary"><p>获取所有者的类型 |
@@ -272,7 +272,7 @@ <h2 class="section" id="methods">Methods |
272 | 272 |
|
273 | 273 | <h3 id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_Active" data-uid="GameFrameX.Core.Abstractions.Agent.IComponentAgent.Active"> |
274 | 274 | Active() |
275 | | - <a class="header-action link-secondary" title="View source" href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev29/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L47"><i class="bi bi-code-slash"></i></a> |
| 275 | + <a class="header-action link-secondary" title="View source" href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev30/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L56"><i class="bi bi-code-slash"></i></a> |
276 | 276 | </h3> |
277 | 277 |
|
278 | 278 | <div class="markdown level1 summary"><p>激活组件代理 |
@@ -303,11 +303,155 @@ <h4 class="section">Returns</h4> |
303 | 303 |
|
304 | 304 |
|
305 | 305 |
|
| 306 | + <a id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_AfterActivation_" data-uid="GameFrameX.Core.Abstractions.Agent.IComponentAgent.AfterActivation*"></a> |
| 307 | + |
| 308 | + <h3 id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_AfterActivation" data-uid="GameFrameX.Core.Abstractions.Agent.IComponentAgent.AfterActivation"> |
| 309 | + AfterActivation() |
| 310 | + <a class="header-action link-secondary" title="View source" href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev30/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L65"><i class="bi bi-code-slash"></i></a> |
| 311 | + </h3> |
| 312 | + |
| 313 | + <div class="markdown level1 summary"><p>组件激活后的回调方法</p> |
| 314 | +</div> |
| 315 | + <div class="markdown level1 conceptual"></div> |
| 316 | + |
| 317 | + <div class="codewrapper"> |
| 318 | + <pre><code class="lang-csharp hljs">Task AfterActivation()</code></pre> |
| 319 | + </div> |
| 320 | + |
| 321 | + |
| 322 | + <h4 class="section">Returns</h4> |
| 323 | + <dl class="parameters"> |
| 324 | + <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a></dt> |
| 325 | + <dd><p>表示异步操作的任务</p> |
| 326 | +</dd> |
| 327 | + </dl> |
| 328 | + |
| 329 | + |
| 330 | + |
| 331 | + |
| 332 | + |
| 333 | + |
| 334 | + |
| 335 | + <h4 class="section" id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_AfterActivation_remarks">Remarks</h4> |
| 336 | + <div class="markdown level1 remarks"><p>在组件完成激活流程后执行,可以用于处理一些初始化后的逻辑</p> |
| 337 | +</div> |
| 338 | + |
| 339 | + |
| 340 | + |
| 341 | + |
| 342 | + <a id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_AfterInActivation_" data-uid="GameFrameX.Core.Abstractions.Agent.IComponentAgent.AfterInActivation*"></a> |
| 343 | + |
| 344 | + <h3 id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_AfterInActivation" data-uid="GameFrameX.Core.Abstractions.Agent.IComponentAgent.AfterInActivation"> |
| 345 | + AfterInActivation() |
| 346 | + <a class="header-action link-secondary" title="View source" href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev30/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L92"><i class="bi bi-code-slash"></i></a> |
| 347 | + </h3> |
| 348 | + |
| 349 | + <div class="markdown level1 summary"><p>组件反激活后的回调方法</p> |
| 350 | +</div> |
| 351 | + <div class="markdown level1 conceptual"></div> |
| 352 | + |
| 353 | + <div class="codewrapper"> |
| 354 | + <pre><code class="lang-csharp hljs">Task AfterInActivation()</code></pre> |
| 355 | + </div> |
| 356 | + |
| 357 | + |
| 358 | + <h4 class="section">Returns</h4> |
| 359 | + <dl class="parameters"> |
| 360 | + <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a></dt> |
| 361 | + <dd><p>表示异步操作的任务</p> |
| 362 | +</dd> |
| 363 | + </dl> |
| 364 | + |
| 365 | + |
| 366 | + |
| 367 | + |
| 368 | + |
| 369 | + |
| 370 | + |
| 371 | + <h4 class="section" id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_AfterInActivation_remarks">Remarks</h4> |
| 372 | + <div class="markdown level1 remarks"><p>在组件完成反激活流程后执行,可以用于确认清理完成或执行最终操作</p> |
| 373 | +</div> |
| 374 | + |
| 375 | + |
| 376 | + |
| 377 | + |
| 378 | + <a id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_BeforeActivation_" data-uid="GameFrameX.Core.Abstractions.Agent.IComponentAgent.BeforeActivation*"></a> |
| 379 | + |
| 380 | + <h3 id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_BeforeActivation" data-uid="GameFrameX.Core.Abstractions.Agent.IComponentAgent.BeforeActivation"> |
| 381 | + BeforeActivation() |
| 382 | + <a class="header-action link-secondary" title="View source" href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev30/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L48"><i class="bi bi-code-slash"></i></a> |
| 383 | + </h3> |
| 384 | + |
| 385 | + <div class="markdown level1 summary"><p>组件激活前的回调方法</p> |
| 386 | +</div> |
| 387 | + <div class="markdown level1 conceptual"></div> |
| 388 | + |
| 389 | + <div class="codewrapper"> |
| 390 | + <pre><code class="lang-csharp hljs">Task BeforeActivation()</code></pre> |
| 391 | + </div> |
| 392 | + |
| 393 | + |
| 394 | + <h4 class="section">Returns</h4> |
| 395 | + <dl class="parameters"> |
| 396 | + <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a></dt> |
| 397 | + <dd><p>表示异步操作的任务</p> |
| 398 | +</dd> |
| 399 | + </dl> |
| 400 | + |
| 401 | + |
| 402 | + |
| 403 | + |
| 404 | + |
| 405 | + |
| 406 | + |
| 407 | + <h4 class="section" id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_BeforeActivation_remarks">Remarks</h4> |
| 408 | + <div class="markdown level1 remarks"><p>在组件开始激活流程前执行,可以用于进行一些预处理操作</p> |
| 409 | +</div> |
| 410 | + |
| 411 | + |
| 412 | + |
| 413 | + |
| 414 | + <a id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_BeforeInActivation_" data-uid="GameFrameX.Core.Abstractions.Agent.IComponentAgent.BeforeInActivation*"></a> |
| 415 | + |
| 416 | + <h3 id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_BeforeInActivation" data-uid="GameFrameX.Core.Abstractions.Agent.IComponentAgent.BeforeInActivation"> |
| 417 | + BeforeInActivation() |
| 418 | + <a class="header-action link-secondary" title="View source" href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev30/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L74"><i class="bi bi-code-slash"></i></a> |
| 419 | + </h3> |
| 420 | + |
| 421 | + <div class="markdown level1 summary"><p>组件反激活前的回调方法</p> |
| 422 | +</div> |
| 423 | + <div class="markdown level1 conceptual"></div> |
| 424 | + |
| 425 | + <div class="codewrapper"> |
| 426 | + <pre><code class="lang-csharp hljs">Task BeforeInActivation()</code></pre> |
| 427 | + </div> |
| 428 | + |
| 429 | + |
| 430 | + <h4 class="section">Returns</h4> |
| 431 | + <dl class="parameters"> |
| 432 | + <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a></dt> |
| 433 | + <dd><p>表示异步操作的任务</p> |
| 434 | +</dd> |
| 435 | + </dl> |
| 436 | + |
| 437 | + |
| 438 | + |
| 439 | + |
| 440 | + |
| 441 | + |
| 442 | + |
| 443 | + <h4 class="section" id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_BeforeInActivation_remarks">Remarks</h4> |
| 444 | + <div class="markdown level1 remarks"><p>在组件开始反激活流程前执行,可以用于保存状态或清理资源</p> |
| 445 | +</div> |
| 446 | + |
| 447 | + |
| 448 | + |
| 449 | + |
306 | 450 | <a id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_GetComponentAgent_" data-uid="GameFrameX.Core.Abstractions.Agent.IComponentAgent.GetComponentAgent*"></a> |
307 | 451 |
|
308 | 452 | <h3 id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_GetComponentAgent_System_Type_System_Boolean_" data-uid="GameFrameX.Core.Abstractions.Agent.IComponentAgent.GetComponentAgent(System.Type,System.Boolean)"> |
309 | 453 | GetComponentAgent(Type, bool) |
310 | | - <a class="header-action link-secondary" title="View source" href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev29/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L67"><i class="bi bi-code-slash"></i></a> |
| 454 | + <a class="header-action link-secondary" title="View source" href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev30/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L103"><i class="bi bi-code-slash"></i></a> |
311 | 455 | </h3> |
312 | 456 |
|
313 | 457 | <div class="markdown level1 summary"><p>根据代理类型获取代理组件</p> |
@@ -352,7 +496,7 @@ <h4 class="section" id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_GetCo |
352 | 496 |
|
353 | 497 | <h3 id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_GetComponentAgent__1_System_Boolean_" data-uid="GameFrameX.Core.Abstractions.Agent.IComponentAgent.GetComponentAgent``1(System.Boolean)"> |
354 | 498 | GetComponentAgent<T>(bool) |
355 | | - <a class="header-action link-secondary" title="View source" href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev29/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L78"><i class="bi bi-code-slash"></i></a> |
| 499 | + <a class="header-action link-secondary" title="View source" href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev30/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L114"><i class="bi bi-code-slash"></i></a> |
356 | 500 | </h3> |
357 | 501 |
|
358 | 502 | <div class="markdown level1 summary"><p>根据泛型代理类型获取代理组件</p> |
@@ -400,7 +544,7 @@ <h4 class="section" id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_GetCo |
400 | 544 |
|
401 | 545 | <h3 id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_Inactive" data-uid="GameFrameX.Core.Abstractions.Agent.IComponentAgent.Inactive"> |
402 | 546 | Inactive() |
403 | | - <a class="header-action link-secondary" title="View source" href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev29/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L56"><i class="bi bi-code-slash"></i></a> |
| 547 | + <a class="header-action link-secondary" title="View source" href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev30/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L83"><i class="bi bi-code-slash"></i></a> |
404 | 548 | </h3> |
405 | 549 |
|
406 | 550 | <div class="markdown level1 summary"><p>反激活组件代理</p> |
@@ -436,7 +580,7 @@ <h4 class="section" id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_Inact |
436 | 580 |
|
437 | 581 | <h3 id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_SetOwner_GameFrameX_Core_Abstractions_IComponent_" data-uid="GameFrameX.Core.Abstractions.Agent.IComponentAgent.SetOwner(GameFrameX.Core.Abstractions.IComponent)"> |
438 | 582 | SetOwner(IComponent) |
439 | | - <a class="header-action link-secondary" title="View source" href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev29/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L39"><i class="bi bi-code-slash"></i></a> |
| 583 | + <a class="header-action link-secondary" title="View source" href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev30/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L39"><i class="bi bi-code-slash"></i></a> |
440 | 584 | </h3> |
441 | 585 |
|
442 | 586 | <div class="markdown level1 summary"><p>设置组件的所有者</p> |
@@ -472,7 +616,7 @@ <h4 class="section" id="GameFrameX_Core_Abstractions_Agent_IComponentAgent_SetOw |
472 | 616 | </article> |
473 | 617 |
|
474 | 618 | <div class="contribution d-print-none"> |
475 | | - <a href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev29/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L6" class="edit-link">Edit this page</a> |
| 619 | + <a href="https://github.com/GameFrameX/GameFrameX.Server/blob/1.5.1-dev30/GameFrameX.Core/Abstractions/Agent/IComponentAgent.cs/#L6" class="edit-link">Edit this page</a> |
476 | 620 | </div> |
477 | 621 |
|
478 | 622 |
|
|
0 commit comments