Initial commit: Ananta CBT 4229938 private server with all fixes

This commit is contained in:
CAtlas0784 committed 2026-09-15 18:13:46 +07:00
commit c84135c357
286 files changed
+2214315

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
namespace Ananta.SDK.Rpc;
public enum HandlerPacketKind
{
Both,
Invoke,
Notify
}
/// <summary>
/// Declares an incoming RPC endpoint. Method ids stay build-specific constants; the dispatcher is generic.
/// By default a handler accepts both invoke and notify forms. Return helpers are safe no-ops for notifications.
/// </summary>
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
public sealed class HandlerAttribute : Attribute
{
public uint MethodId { get; }
public HandlerPacketKind PacketKind { get; }
public HandlerAttribute(uint methodId, HandlerPacketKind packetKind = HandlerPacketKind.Both)
{
MethodId = methodId;
PacketKind = packetKind;
}
}