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
82 lines
2.3 KiB
C#
82 lines
2.3 KiB
C#
// Stub - GlobalManager base class from GlobalSever (namespace: Server)
|
|
using System;
|
|
using System.Text;
|
|
|
|
namespace Server
|
|
{
|
|
public class PackHead { }
|
|
public interface ITimerProcessor
|
|
{
|
|
void SecondTime();
|
|
}
|
|
|
|
public partial class GlobalManager : ITimerProcessor
|
|
{
|
|
protected virtual Server.Config.ConfigHead GetConfigHead() => null;
|
|
protected virtual void SendConfigPack() { }
|
|
public virtual void DayInit() { }
|
|
protected virtual bool Init() => true;
|
|
public virtual void OnTime(int Interval) { }
|
|
protected virtual void Update() { }
|
|
public virtual void SecondTime() { }
|
|
public virtual void Close() { }
|
|
protected virtual void DoCommand(Server.WaitBeMsg msg) { }
|
|
protected virtual void ReportPlayerOnLineData(Server.WaitBeMsg msg) { }
|
|
|
|
public class MessageProcessor
|
|
{
|
|
protected virtual bool DoPackBase(Server.WaitBeMsg msg, StringBuilder logStringBuilder) => true;
|
|
protected virtual void DoPack(Server.WaitBeMsg msg, StringBuilder logStringBuilder) { }
|
|
protected virtual bool CheckClientVer(Server.PackHead head) => true;
|
|
}
|
|
}
|
|
}
|
|
|
|
namespace Server.Core
|
|
{
|
|
public class PackAgreement { }
|
|
public class ClubDataChange { }
|
|
public class JoinFriendRoom { }
|
|
public class ArrayBufferWriter { }
|
|
public class GlobalDispatcher { }
|
|
public class GameMessageDispatcher { }
|
|
public class GlobalMsgId { }
|
|
public class WayManager { }
|
|
public class CaCheManager { }
|
|
public class GoLdenManager { }
|
|
public class ActorNetManager { }
|
|
public class IPManager { }
|
|
public class TestManager { }
|
|
public class ActivityPropManager { }
|
|
public class PropManager { }
|
|
public class PropManager_Cache { }
|
|
public class ActivityStatistics { }
|
|
public class FSMState { }
|
|
}
|
|
|
|
namespace Server.Config
|
|
{
|
|
public class ConfigHead { }
|
|
}
|
|
|
|
namespace Server.Data.Module
|
|
{
|
|
public class ModuleDataTab { }
|
|
}
|
|
|
|
namespace Server.DB.Redis
|
|
{
|
|
public class RedisCachingHelper { }
|
|
public class RedisDictionary { }
|
|
public class redisManager { }
|
|
public class DistributedLock { }
|
|
public class IDatabaseProxy { }
|
|
public class RedisDataBaseExtensions { }
|
|
}
|
|
|
|
namespace Server.Pack
|
|
{
|
|
public class PackAgreement { }
|
|
public class ClubDataChange { }
|
|
}
|