Files
hjha-server/ServerCore/Actor/Base/IActor.cs
xiaoou e9616125ce 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
2026-07-07 12:02:15 +08:00

65 lines
1.2 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using NetWorkMessage;
using Server.Core;
namespace ActorCore
{
/// <summary>
/// IActor
/// </summary>
public interface IActor : IDisposable
{
ActorId ActorId
{
get;
}
/// <summary>
/// 是否被Manager管理
/// </summary>
bool IsRegister
{
get;
set;
}
bool IsDisposed
{
get;
}
SchedulerType SchedulerType
{
get;
}
/// <summary>
/// 由ActorManager管理其他地方不可以设置
/// </summary>
int Id
{
get;
}
/// <summary>
/// 线程同步上下文
/// </summary>
ThreadSynchronizationContext ThreadSynchronizationContext
{
get;
}
void RegisterHandle();
void IUpdate();
void ILateUpdate();
/// <summary>
/// 发送消息
/// </summary>
/// <param name="actorId"></param>
/// <param name="message"></param>
void Send(ActorId actorId, IMessage message);
}
}