Skip to content

Commit 1d0e84a

Browse files
committed
[修改]1. 修改函数命名标准化
1 parent e02023b commit 1d0e84a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

GameFrameX.Core/Actors/Actor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ async Task Worker()
9191
/// <returns></returns>
9292
private BaseComponent GetOrAddFactory(Type type)
9393
{
94-
return ComponentRegister.NewComp(this, type);
94+
return ComponentRegister.CreateComponent(this, type);
9595
}
9696

9797
/// <summary>

GameFrameX.Core/Components/ComponentRegister.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public static Task Init(Assembly assembly = null)
111111
/// <summary>
112112
/// 激活全局组件
113113
/// </summary>
114-
public static async Task ActiveGlobalComps()
114+
public static async Task ActiveGlobalComponents()
115115
{
116116
try
117117
{
@@ -154,7 +154,7 @@ public static async Task ActiveGlobalComps()
154154
/// <param name="componentAgent"></param>
155155
/// <param name="openFuncSet"></param>
156156
/// <returns></returns>
157-
public static Task ActiveRoleComps(IComponentAgent componentAgent, HashSet<short> openFuncSet)
157+
public static Task ActiveRoleComponents(IComponentAgent componentAgent, HashSet<short> openFuncSet)
158158
{
159159
return ActiveComponents(componentAgent.Owner.Actor,
160160
t => !ComponentFuncDic.TryGetValue(t, out var func)
@@ -207,7 +207,7 @@ internal static async Task ActiveComponents(IActor actor, Func<Type, bool> predi
207207
}
208208
}
209209

210-
internal static BaseComponent NewComp(Actor actor, Type compType)
210+
internal static BaseComponent CreateComponent(Actor actor, Type compType)
211211
{
212212
if (!ActorComponentDic.TryGetValue(actor.Type, out var compTypes))
213213
{

GameFrameX.Hotfix/Common/HotfixBridge.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public async Task<bool> OnLoadSuccess(AppSetting setting, bool reload)
2727
await _appStartUpHotfixGame.StartAsync();
2828
RunServer(reload);
2929
GlobalTimer.Start();
30-
await ComponentRegister.ActiveGlobalComps();
30+
await ComponentRegister.ActiveGlobalComponents();
3131
return true;
3232
}
3333

0 commit comments

Comments
 (0)