feat: initial commit - HJHA game server full source
6 major server modules (PdkFriendServer/GlobalSever/ServerCore/GameModule/GameNetModule) + game logic (GameFix/GameDAL/ServerData) + network layer (NetWorkMessage) + data layer (ObjectModel) + utilities (MrWu/Core/Config/CloudAPI/dll) + adapters (zyxAdapter/base) .NET 8.0 C# solution, 16 projects, 958 source files
This commit is contained in:
33
NetWorkMessage/Message/MessageData/Common/GameFinMessage.cs
Normal file
33
NetWorkMessage/Message/MessageData/Common/GameFinMessage.cs
Normal file
@ -0,0 +1,33 @@
|
||||
using GameMessage;
|
||||
using MessagePack;
|
||||
#if Server
|
||||
using Server.Core;
|
||||
#else
|
||||
#endif
|
||||
|
||||
namespace UnityGame
|
||||
{
|
||||
[Message(MessageCode.GameFinPlayer)]
|
||||
[MessagePackObject]
|
||||
public class GameFinMessage : MessageData
|
||||
{
|
||||
[Key(0)]
|
||||
public int FinCode;
|
||||
|
||||
#if Server
|
||||
public static GameFinMessage Create(int finCode)
|
||||
{
|
||||
GameFinMessage gameFinMessage = ReferencePool.Fetch<GameFinMessage>();
|
||||
gameFinMessage.FinCode = finCode;
|
||||
return gameFinMessage;
|
||||
}
|
||||
|
||||
public override void Dispose()
|
||||
{
|
||||
ReferencePool.Recycle(this);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user