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:
10
ServerCore/Attribute/BaseAttribute.cs
Normal file
10
ServerCore/Attribute/BaseAttribute.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using System;
|
||||
|
||||
namespace Server.Core
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public class BaseAttribute : Attribute
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
15
ServerCore/Attribute/MessageAttribute.cs
Normal file
15
ServerCore/Attribute/MessageAttribute.cs
Normal file
@ -0,0 +1,15 @@
|
||||
namespace Server.Core
|
||||
{
|
||||
public class MessageAttribute : BaseAttribute
|
||||
{
|
||||
public uint Opcode
|
||||
{
|
||||
get;
|
||||
}
|
||||
|
||||
public MessageAttribute(uint opcode = 0)
|
||||
{
|
||||
this.Opcode = opcode;
|
||||
}
|
||||
}
|
||||
}
|
||||
14
ServerCore/Attribute/ResponseTypeAttribute.cs
Normal file
14
ServerCore/Attribute/ResponseTypeAttribute.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
|
||||
namespace Server.Core
|
||||
{
|
||||
public class ResponseTypeAttribute : BaseAttribute
|
||||
{
|
||||
public Type Type { get; }
|
||||
|
||||
public ResponseTypeAttribute(Type type)
|
||||
{
|
||||
this.Type = type;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user