Skip to content

Commit 8f18d47

Browse files
committed
style: 移除多余空行并格式化代码
清理代码中的多余空行,统一代码格式。主要修改包括: 1. 删除namespace声明前的多余空行 2. 调整部分代码块的缩进和格式 3. 添加新测试文件LocalizationTest.cs 4. 修复部分文件末尾缺少换行符的问题 5. 统一代码中的换行和空格使用
1 parent a7899f6 commit 8f18d47

File tree

90 files changed

+1071
-1073
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+1071
-1073
lines changed

GameFrameX.Apps/ActorType.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
// ==========================================================================================
3131

3232

33-
3433
namespace GameFrameX.Apps;
3534

3635
/// <summary>

GameFrameX.Apps/AppsHandler.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
// ==========================================================================================
3131

3232

33-
3433
namespace GameFrameX.Apps;
3534

3635
public class AppsHandler

GameFrameX.Apps/CacheStateTypeManager.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
// ==========================================================================================
3131

3232

33-
3433
using GameFrameX.Foundation.Hash;
3534

3635
namespace GameFrameX.Apps;

GameFrameX.Apps/Common/EventData/PlayerSendItemEventArgs.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
// ==========================================================================================
3131

3232

33-
3433
using GameFrameX.Core.Abstractions.Events;
3534

3635
namespace GameFrameX.Apps.Common.EventData;

GameFrameX.Apps/Common/Session/SessionManager.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ public static int Count()
6666
public static List<Session> GetPageList(int pageSize, int pageIndex)
6767
{
6868
var result = SessionMap.Values.OrderBy(m => m.CreateTime)
69-
.Where(m => ActorManager.HasActor(m.PlayerId))
70-
.Skip(pageIndex * pageSize)
71-
.Take(pageSize)
72-
.ToList();
69+
.Where(m => ActorManager.HasActor(m.PlayerId))
70+
.Skip(pageIndex * pageSize)
71+
.Take(pageSize)
72+
.ToList();
7373
return result;
7474
}
7575

@@ -225,6 +225,7 @@ public static async void UpdateSession(string sessionId, long roleId, string sig
225225
{
226226
return;
227227
}
228+
228229
session.SetPlayerId(roleId);
229230
session.SetSign(sign);
230231
}

GameFrameX.Apps/GlobalUsings.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
// ==========================================================================================
3131

3232

33-
3433
global using System;
3534
global using System.Threading.Tasks;
3635
global using MongoDB.Bson;

GameFrameX.Apps/Player/Bag/Component/BagComponent.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
// ==========================================================================================
3131

3232

33-
3433
using GameFrameX.Apps.Player.Bag.Entity;
3534

3635
namespace GameFrameX.Apps.Player.Bag.Component;

GameFrameX.Apps/Player/Bag/Entity/BagState.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
// ==========================================================================================
3131

3232

33-
3433
namespace GameFrameX.Apps.Player.Bag.Entity;
3534

3635
public sealed class BagState : CacheState

GameFrameX.Apps/Player/Friend/FriendComponent.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,4 @@ namespace GameFrameX.Apps.Player.Friend;
3535
[ComponentType(GlobalConst.ActorTypePlayer)]
3636
public sealed class FriendComponent : StateComponent<FriendState>
3737
{
38-
3938
}

GameFrameX.Apps/Player/Friend/FriendState.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
// ==========================================================================================
3131

3232

33-
3433
namespace GameFrameX.Apps.Player.Friend;
3534

3635
public sealed class FriendState : CacheState

0 commit comments

Comments
 (0)