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:
39
Core/Pool/IReference.cs
Normal file
39
Core/Pool/IReference.cs
Normal file
@ -0,0 +1,39 @@
|
||||
using System;
|
||||
|
||||
namespace Server.Core
|
||||
{
|
||||
/// <summary>
|
||||
/// 引用池对象
|
||||
/// </summary>
|
||||
public interface IReference : IDisposable
|
||||
{
|
||||
bool IsFromPool
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
long ReferenceId
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
}
|
||||
|
||||
public abstract class Reference : IReference
|
||||
{
|
||||
public bool IsFromPool
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public long ReferenceId
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public abstract void Dispose();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user