GameModules

GameModules
This commit is contained in:
ALEXTANG
2023-04-04 12:48:54 +08:00
parent 890723d4c9
commit 8b164173ac
61 changed files with 83 additions and 83 deletions

View File

@@ -2,7 +2,7 @@
namespace TEngine.Editor.Inspector namespace TEngine.Editor.Inspector
{ {
[CustomEditor(typeof(FsmComponent))] [CustomEditor(typeof(FsmModule))]
internal sealed class FsmComponentInspector : GameFrameworkInspector internal sealed class FsmComponentInspector : GameFrameworkInspector
{ {
public override void OnInspectorGUI() public override void OnInspectorGUI()
@@ -15,7 +15,7 @@ namespace TEngine.Editor.Inspector
return; return;
} }
FsmComponent t = (FsmComponent)target; FsmModule t = (FsmModule)target;
if (IsPrefabInHierarchy(t.gameObject)) if (IsPrefabInHierarchy(t.gameObject))
{ {

View File

@@ -5,7 +5,7 @@ using UnityEngine.Rendering;
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed class EnvironmentInformationWindow : ScrollableDebuggerWindowBase private sealed class EnvironmentInformationWindow : ScrollableDebuggerWindowBase
{ {

View File

@@ -2,7 +2,7 @@
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed class GraphicsInformationWindow : ScrollableDebuggerWindowBase private sealed class GraphicsInformationWindow : ScrollableDebuggerWindowBase
{ {

View File

@@ -2,7 +2,7 @@
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed class InputAccelerationInformationWindow : ScrollableDebuggerWindowBase private sealed class InputAccelerationInformationWindow : ScrollableDebuggerWindowBase
{ {

View File

@@ -2,7 +2,7 @@
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed class InputCompassInformationWindow : ScrollableDebuggerWindowBase private sealed class InputCompassInformationWindow : ScrollableDebuggerWindowBase
{ {

View File

@@ -2,7 +2,7 @@
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed class InputGyroscopeInformationWindow : ScrollableDebuggerWindowBase private sealed class InputGyroscopeInformationWindow : ScrollableDebuggerWindowBase
{ {

View File

@@ -2,7 +2,7 @@
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed class InputLocationInformationWindow : ScrollableDebuggerWindowBase private sealed class InputLocationInformationWindow : ScrollableDebuggerWindowBase
{ {

View File

@@ -2,7 +2,7 @@
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed class InputSummaryInformationWindow : ScrollableDebuggerWindowBase private sealed class InputSummaryInformationWindow : ScrollableDebuggerWindowBase
{ {

View File

@@ -2,7 +2,7 @@
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed class InputTouchInformationWindow : ScrollableDebuggerWindowBase private sealed class InputTouchInformationWindow : ScrollableDebuggerWindowBase
{ {

View File

@@ -3,7 +3,7 @@ using UnityEngine;
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
/// <summary> /// <summary>
/// 日志记录结点。 /// 日志记录结点。

View File

@@ -4,7 +4,7 @@ using UnityEngine;
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed class MemoryPoolPoolInformationWindow : ScrollableDebuggerWindowBase private sealed class MemoryPoolPoolInformationWindow : ScrollableDebuggerWindowBase
{ {

View File

@@ -2,7 +2,7 @@
// //
// namespace TEngine // namespace TEngine
// { // {
// public sealed partial class DebuggerComponent : GameFrameworkComponent // public sealed partial class DebuggerModule : GameFrameworkComponent
// { // {
// private sealed class NetworkInformationWindow : ScrollableDebuggerWindowBase // private sealed class NetworkInformationWindow : ScrollableDebuggerWindowBase
// { // {

View File

@@ -2,7 +2,7 @@
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed class ObjectPoolInformationWindow : ScrollableDebuggerWindowBase private sealed class ObjectPoolInformationWindow : ScrollableDebuggerWindowBase
{ {

View File

@@ -2,7 +2,7 @@
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed class OperationsWindow : ScrollableDebuggerWindowBase private sealed class OperationsWindow : ScrollableDebuggerWindowBase
{ {

View File

@@ -3,7 +3,7 @@ using UnityEngine;
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed class PathInformationWindow : ScrollableDebuggerWindowBase private sealed class PathInformationWindow : ScrollableDebuggerWindowBase
{ {

View File

@@ -5,7 +5,7 @@ using UnityEngine.Profiling;
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed class ProfilerInformationWindow : ScrollableDebuggerWindowBase private sealed class ProfilerInformationWindow : ScrollableDebuggerWindowBase
{ {

View File

@@ -2,7 +2,7 @@
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed class QualityInformationWindow : ScrollableDebuggerWindowBase private sealed class QualityInformationWindow : ScrollableDebuggerWindowBase
{ {

View File

@@ -1,6 +1,6 @@
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed partial class RuntimeMemoryInformationWindow<T> : ScrollableDebuggerWindowBase where T : UnityEngine.Object private sealed partial class RuntimeMemoryInformationWindow<T> : ScrollableDebuggerWindowBase where T : UnityEngine.Object
{ {

View File

@@ -7,7 +7,7 @@ using UnityEngine.Profiling;
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed partial class RuntimeMemoryInformationWindow<T> : ScrollableDebuggerWindowBase where T : UnityEngine.Object private sealed partial class RuntimeMemoryInformationWindow<T> : ScrollableDebuggerWindowBase where T : UnityEngine.Object
{ {

View File

@@ -1,6 +1,6 @@
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed partial class RuntimeMemorySummaryWindow : ScrollableDebuggerWindowBase private sealed partial class RuntimeMemorySummaryWindow : ScrollableDebuggerWindowBase
{ {

View File

@@ -7,7 +7,7 @@ using UnityEngine.Profiling;
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed partial class RuntimeMemorySummaryWindow : ScrollableDebuggerWindowBase private sealed partial class RuntimeMemorySummaryWindow : ScrollableDebuggerWindowBase
{ {

View File

@@ -3,7 +3,7 @@ using UnityEngine.SceneManagement;
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed class SceneInformationWindow : ScrollableDebuggerWindowBase private sealed class SceneInformationWindow : ScrollableDebuggerWindowBase
{ {

View File

@@ -2,7 +2,7 @@
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed class ScreenInformationWindow : ScrollableDebuggerWindowBase private sealed class ScreenInformationWindow : ScrollableDebuggerWindowBase
{ {

View File

@@ -2,7 +2,7 @@
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private abstract class ScrollableDebuggerWindowBase : IDebuggerWindow private abstract class ScrollableDebuggerWindowBase : IDebuggerWindow
{ {

View File

@@ -2,11 +2,11 @@
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed class SettingsWindow : ScrollableDebuggerWindowBase private sealed class SettingsWindow : ScrollableDebuggerWindowBase
{ {
private DebuggerComponent m_DebuggerComponent = null; private DebuggerModule _mDebuggerModule = null;
private SettingComponent m_SettingComponent = null; private SettingComponent m_SettingComponent = null;
private float m_LastIconX = 0f; private float m_LastIconX = 0f;
private float m_LastIconY = 0f; private float m_LastIconY = 0f;
@@ -18,8 +18,8 @@ namespace TEngine
public override void Initialize(params object[] args) public override void Initialize(params object[] args)
{ {
m_DebuggerComponent = GameEntry.GetComponent<DebuggerComponent>(); _mDebuggerModule = GameEntry.GetComponent<DebuggerModule>();
if (m_DebuggerComponent == null) if (_mDebuggerModule == null)
{ {
Log.Fatal("Debugger component is invalid."); Log.Fatal("Debugger component is invalid.");
return; return;
@@ -38,53 +38,53 @@ namespace TEngine
m_LastWindowY = m_SettingComponent.GetFloat("Debugger.Window.Y", DefaultWindowRect.y); m_LastWindowY = m_SettingComponent.GetFloat("Debugger.Window.Y", DefaultWindowRect.y);
m_LastWindowWidth = m_SettingComponent.GetFloat("Debugger.Window.Width", DefaultWindowRect.width); m_LastWindowWidth = m_SettingComponent.GetFloat("Debugger.Window.Width", DefaultWindowRect.width);
m_LastWindowHeight = m_SettingComponent.GetFloat("Debugger.Window.Height", DefaultWindowRect.height); m_LastWindowHeight = m_SettingComponent.GetFloat("Debugger.Window.Height", DefaultWindowRect.height);
m_DebuggerComponent.WindowScale = m_LastWindowScale = m_SettingComponent.GetFloat("Debugger.Window.Scale", DefaultWindowScale); _mDebuggerModule.WindowScale = m_LastWindowScale = m_SettingComponent.GetFloat("Debugger.Window.Scale", DefaultWindowScale);
m_DebuggerComponent.IconRect = new Rect(m_LastIconX, m_LastIconY, DefaultIconRect.width, DefaultIconRect.height); _mDebuggerModule.IconRect = new Rect(m_LastIconX, m_LastIconY, DefaultIconRect.width, DefaultIconRect.height);
m_DebuggerComponent.WindowRect = new Rect(m_LastWindowX, m_LastWindowY, m_LastWindowWidth, m_LastWindowHeight); _mDebuggerModule.WindowRect = new Rect(m_LastWindowX, m_LastWindowY, m_LastWindowWidth, m_LastWindowHeight);
} }
public override void OnUpdate(float elapseSeconds, float realElapseSeconds) public override void OnUpdate(float elapseSeconds, float realElapseSeconds)
{ {
if (m_LastIconX != m_DebuggerComponent.IconRect.x) if (m_LastIconX != _mDebuggerModule.IconRect.x)
{ {
m_LastIconX = m_DebuggerComponent.IconRect.x; m_LastIconX = _mDebuggerModule.IconRect.x;
m_SettingComponent.SetFloat("Debugger.Icon.X", m_DebuggerComponent.IconRect.x); m_SettingComponent.SetFloat("Debugger.Icon.X", _mDebuggerModule.IconRect.x);
} }
if (m_LastIconY != m_DebuggerComponent.IconRect.y) if (m_LastIconY != _mDebuggerModule.IconRect.y)
{ {
m_LastIconY = m_DebuggerComponent.IconRect.y; m_LastIconY = _mDebuggerModule.IconRect.y;
m_SettingComponent.SetFloat("Debugger.Icon.Y", m_DebuggerComponent.IconRect.y); m_SettingComponent.SetFloat("Debugger.Icon.Y", _mDebuggerModule.IconRect.y);
} }
if (m_LastWindowX != m_DebuggerComponent.WindowRect.x) if (m_LastWindowX != _mDebuggerModule.WindowRect.x)
{ {
m_LastWindowX = m_DebuggerComponent.WindowRect.x; m_LastWindowX = _mDebuggerModule.WindowRect.x;
m_SettingComponent.SetFloat("Debugger.Window.X", m_DebuggerComponent.WindowRect.x); m_SettingComponent.SetFloat("Debugger.Window.X", _mDebuggerModule.WindowRect.x);
} }
if (m_LastWindowY != m_DebuggerComponent.WindowRect.y) if (m_LastWindowY != _mDebuggerModule.WindowRect.y)
{ {
m_LastWindowY = m_DebuggerComponent.WindowRect.y; m_LastWindowY = _mDebuggerModule.WindowRect.y;
m_SettingComponent.SetFloat("Debugger.Window.Y", m_DebuggerComponent.WindowRect.y); m_SettingComponent.SetFloat("Debugger.Window.Y", _mDebuggerModule.WindowRect.y);
} }
if (m_LastWindowWidth != m_DebuggerComponent.WindowRect.width) if (m_LastWindowWidth != _mDebuggerModule.WindowRect.width)
{ {
m_LastWindowWidth = m_DebuggerComponent.WindowRect.width; m_LastWindowWidth = _mDebuggerModule.WindowRect.width;
m_SettingComponent.SetFloat("Debugger.Window.Width", m_DebuggerComponent.WindowRect.width); m_SettingComponent.SetFloat("Debugger.Window.Width", _mDebuggerModule.WindowRect.width);
} }
if (m_LastWindowHeight != m_DebuggerComponent.WindowRect.height) if (m_LastWindowHeight != _mDebuggerModule.WindowRect.height)
{ {
m_LastWindowHeight = m_DebuggerComponent.WindowRect.height; m_LastWindowHeight = _mDebuggerModule.WindowRect.height;
m_SettingComponent.SetFloat("Debugger.Window.Height", m_DebuggerComponent.WindowRect.height); m_SettingComponent.SetFloat("Debugger.Window.Height", _mDebuggerModule.WindowRect.height);
} }
if (m_LastWindowScale != m_DebuggerComponent.WindowScale) if (m_LastWindowScale != _mDebuggerModule.WindowScale)
{ {
m_LastWindowScale = m_DebuggerComponent.WindowScale; m_LastWindowScale = _mDebuggerModule.WindowScale;
m_SettingComponent.SetFloat("Debugger.Window.Scale", m_DebuggerComponent.WindowScale); m_SettingComponent.SetFloat("Debugger.Window.Scale", _mDebuggerModule.WindowScale);
} }
} }
@@ -102,7 +102,7 @@ namespace TEngine
GUILayout.BeginHorizontal(); GUILayout.BeginHorizontal();
{ {
float width = m_DebuggerComponent.WindowRect.width; float width = _mDebuggerModule.WindowRect.width;
GUILayout.Label("Width:", GUILayout.Width(60f)); GUILayout.Label("Width:", GUILayout.Width(60f));
if (GUILayout.RepeatButton("-", GUILayout.Width(30f))) if (GUILayout.RepeatButton("-", GUILayout.Width(30f)))
{ {
@@ -114,16 +114,16 @@ namespace TEngine
width++; width++;
} }
width = Mathf.Clamp(width, 100f, Screen.width - 20f); width = Mathf.Clamp(width, 100f, Screen.width - 20f);
if (width != m_DebuggerComponent.WindowRect.width) if (width != _mDebuggerModule.WindowRect.width)
{ {
m_DebuggerComponent.WindowRect = new Rect(m_DebuggerComponent.WindowRect.x, m_DebuggerComponent.WindowRect.y, width, m_DebuggerComponent.WindowRect.height); _mDebuggerModule.WindowRect = new Rect(_mDebuggerModule.WindowRect.x, _mDebuggerModule.WindowRect.y, width, _mDebuggerModule.WindowRect.height);
} }
} }
GUILayout.EndHorizontal(); GUILayout.EndHorizontal();
GUILayout.BeginHorizontal(); GUILayout.BeginHorizontal();
{ {
float height = m_DebuggerComponent.WindowRect.height; float height = _mDebuggerModule.WindowRect.height;
GUILayout.Label("Height:", GUILayout.Width(60f)); GUILayout.Label("Height:", GUILayout.Width(60f));
if (GUILayout.RepeatButton("-", GUILayout.Width(30f))) if (GUILayout.RepeatButton("-", GUILayout.Width(30f)))
{ {
@@ -135,16 +135,16 @@ namespace TEngine
height++; height++;
} }
height = Mathf.Clamp(height, 100f, Screen.height - 20f); height = Mathf.Clamp(height, 100f, Screen.height - 20f);
if (height != m_DebuggerComponent.WindowRect.height) if (height != _mDebuggerModule.WindowRect.height)
{ {
m_DebuggerComponent.WindowRect = new Rect(m_DebuggerComponent.WindowRect.x, m_DebuggerComponent.WindowRect.y, m_DebuggerComponent.WindowRect.width, height); _mDebuggerModule.WindowRect = new Rect(_mDebuggerModule.WindowRect.x, _mDebuggerModule.WindowRect.y, _mDebuggerModule.WindowRect.width, height);
} }
} }
GUILayout.EndHorizontal(); GUILayout.EndHorizontal();
GUILayout.BeginHorizontal(); GUILayout.BeginHorizontal();
{ {
float scale = m_DebuggerComponent.WindowScale; float scale = _mDebuggerModule.WindowScale;
GUILayout.Label("Scale:", GUILayout.Width(60f)); GUILayout.Label("Scale:", GUILayout.Width(60f));
if (GUILayout.RepeatButton("-", GUILayout.Width(30f))) if (GUILayout.RepeatButton("-", GUILayout.Width(30f)))
{ {
@@ -156,9 +156,9 @@ namespace TEngine
scale += 0.01f; scale += 0.01f;
} }
scale = Mathf.Clamp(scale, 0.5f, 4f); scale = Mathf.Clamp(scale, 0.5f, 4f);
if (scale != m_DebuggerComponent.WindowScale) if (scale != _mDebuggerModule.WindowScale)
{ {
m_DebuggerComponent.WindowScale = scale; _mDebuggerModule.WindowScale = scale;
} }
} }
GUILayout.EndHorizontal(); GUILayout.EndHorizontal();
@@ -167,42 +167,42 @@ namespace TEngine
{ {
if (GUILayout.Button("0.5x", GUILayout.Height(60f))) if (GUILayout.Button("0.5x", GUILayout.Height(60f)))
{ {
m_DebuggerComponent.WindowScale = 0.5f; _mDebuggerModule.WindowScale = 0.5f;
} }
if (GUILayout.Button("1.0x", GUILayout.Height(60f))) if (GUILayout.Button("1.0x", GUILayout.Height(60f)))
{ {
m_DebuggerComponent.WindowScale = 1f; _mDebuggerModule.WindowScale = 1f;
} }
if (GUILayout.Button("1.5x", GUILayout.Height(60f))) if (GUILayout.Button("1.5x", GUILayout.Height(60f)))
{ {
m_DebuggerComponent.WindowScale = 1.5f; _mDebuggerModule.WindowScale = 1.5f;
} }
if (GUILayout.Button("2.0x", GUILayout.Height(60f))) if (GUILayout.Button("2.0x", GUILayout.Height(60f)))
{ {
m_DebuggerComponent.WindowScale = 2f; _mDebuggerModule.WindowScale = 2f;
} }
if (GUILayout.Button("2.5x", GUILayout.Height(60f))) if (GUILayout.Button("2.5x", GUILayout.Height(60f)))
{ {
m_DebuggerComponent.WindowScale = 2.5f; _mDebuggerModule.WindowScale = 2.5f;
} }
if (GUILayout.Button("3.0x", GUILayout.Height(60f))) if (GUILayout.Button("3.0x", GUILayout.Height(60f)))
{ {
m_DebuggerComponent.WindowScale = 3f; _mDebuggerModule.WindowScale = 3f;
} }
if (GUILayout.Button("3.5x", GUILayout.Height(60f))) if (GUILayout.Button("3.5x", GUILayout.Height(60f)))
{ {
m_DebuggerComponent.WindowScale = 3.5f; _mDebuggerModule.WindowScale = 3.5f;
} }
if (GUILayout.Button("4.0x", GUILayout.Height(60f))) if (GUILayout.Button("4.0x", GUILayout.Height(60f)))
{ {
m_DebuggerComponent.WindowScale = 4f; _mDebuggerModule.WindowScale = 4f;
} }
} }
GUILayout.EndHorizontal(); GUILayout.EndHorizontal();
if (GUILayout.Button("Reset Layout", GUILayout.Height(30f))) if (GUILayout.Button("Reset Layout", GUILayout.Height(30f)))
{ {
m_DebuggerComponent.ResetLayout(); _mDebuggerModule.ResetLayout();
} }
} }
GUILayout.EndVertical(); GUILayout.EndVertical();

View File

@@ -2,7 +2,7 @@
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed class SystemInformationWindow : ScrollableDebuggerWindowBase private sealed class SystemInformationWindow : ScrollableDebuggerWindowBase
{ {

View File

@@ -2,7 +2,7 @@
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed class TimeInformationWindow : ScrollableDebuggerWindowBase private sealed class TimeInformationWindow : ScrollableDebuggerWindowBase
{ {

View File

@@ -4,7 +4,7 @@ using UnityEngine;
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
[Serializable] [Serializable]
private sealed class ConsoleWindow : IDebuggerWindow private sealed class ConsoleWindow : IDebuggerWindow

View File

@@ -1,6 +1,6 @@
namespace TEngine namespace TEngine
{ {
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
private sealed class FpsCounter private sealed class FpsCounter
{ {

View File

@@ -8,7 +8,7 @@ namespace TEngine
/// 调试器组件。 /// 调试器组件。
/// </summary> /// </summary>
[DisallowMultipleComponent] [DisallowMultipleComponent]
public sealed partial class DebuggerComponent : GameFrameworkComponent public sealed partial class DebuggerModule : GameFrameworkComponent
{ {
/// <summary> /// <summary>
/// 默认调试器漂浮框大小。 /// 默认调试器漂浮框大小。

View File

@@ -5,10 +5,10 @@ using UnityEngine;
namespace TEngine namespace TEngine
{ {
/// <summary> /// <summary>
/// 有限状态机组件 /// 有限状态机模块
/// </summary> /// </summary>
[DisallowMultipleComponent] [DisallowMultipleComponent]
public sealed class FsmComponent : GameFrameworkComponent public sealed class FsmModule : GameFrameworkComponent
{ {
private IFsmManager m_FsmManager = null; private IFsmManager m_FsmManager = null;

View File

@@ -5,7 +5,7 @@ using TEngine.Localization;
namespace TEngine namespace TEngine
{ {
/// <summary> /// <summary>
/// 基础组件 /// 基础模块
/// </summary> /// </summary>
[DisallowMultipleComponent] [DisallowMultipleComponent]
public sealed class RootModule : GameFrameworkComponent public sealed class RootModule : GameFrameworkComponent

View File

@@ -17,12 +17,12 @@ public class GameModule:MonoBehaviour
/// <summary> /// <summary>
/// 获取调试模块。 /// 获取调试模块。
/// </summary> /// </summary>
public static DebuggerComponent Debugger { get; private set; } public static DebuggerModule Debugger { get; private set; }
/// <summary> /// <summary>
/// 获取有限状态机模块。 /// 获取有限状态机模块。
/// </summary> /// </summary>
public static FsmComponent Fsm { get; private set; } public static FsmModule Fsm { get; private set; }
/// <summary> /// <summary>
/// 获取对象池模块。 /// 获取对象池模块。
@@ -52,8 +52,8 @@ public class GameModule:MonoBehaviour
public static void InitFrameWorkComponents() public static void InitFrameWorkComponents()
{ {
Base = Get<RootModule>(); Base = Get<RootModule>();
Debugger = Get<DebuggerComponent>(); Debugger = Get<DebuggerModule>();
Fsm = Get<FsmComponent>(); Fsm = Get<FsmModule>();
ObjectPool = Get<ObjectPoolComponent>(); ObjectPool = Get<ObjectPoolComponent>();
Resource = Get<ResourceComponent>(); Resource = Get<ResourceComponent>();
Setting = Get<SettingComponent>(); Setting = Get<SettingComponent>();