Migrated from net48 (.NET Framework) to net10.0 (cross-platform): - All 14 csproj: net48 → net10.0, WindowsDesktop SDK → Microsoft.NET.Sdk - Excluded WinForms files (Form/**, DebugControl, GameControl, etc.) - Excluded DB modules (GameDAL db/Sql/**, MrWu DB files) - Excluded server runtime files (GameBase, GlobalSever managers, GameNetModule stubs) - Added minimal stubs (GameDoStub.cs, NamespaceStubs.cs, ServerCoreStubs.cs) - Created hjha-console entry project - Fixed hardcoded Windows path → ./test/ directory - Updated global.json to SDK 10.0.109 Console test mode: PdkGameMain(null).Test() → 发牌→包庄→打牌→结算 Verified: dotnet build 0 errors, dotnet run outputs game state machine
25 lines
918 B
C#
25 lines
918 B
C#
// Stub for Linux Console mode - networking not used in console test
|
|
using System;
|
|
using GameMessage;
|
|
|
|
namespace Server.Net
|
|
{
|
|
public class ProxySession : IUserSession, IDisposable
|
|
{
|
|
public long Id => 0;
|
|
public long InstanceId => 0;
|
|
public bool IsDisConnected => false;
|
|
public string VerificationCode { get; set; }
|
|
public SessionUserData UserData => null;
|
|
public string RemoteIPAddress => "127.0.0.1";
|
|
|
|
public void Send(byte[] buffer, Type messageType) { }
|
|
public void Send(MessageData messageData) { }
|
|
public void BindUser(int userid, string uuid, int clientVer, int plat, string deviceInfo, bool isNewUser, string storeType, bool reset = false) { }
|
|
public void DisConnected() { }
|
|
public void Dispose() { }
|
|
|
|
public static ProxySession Create(object _ = null) => new ProxySession();
|
|
}
|
|
}
|