using TBL.CSharp.Game.Server.Utilities; namespace TBL.CSharp.Game.Server.Message; /// /// 服务器信号 /// public readonly struct Signal { /// /// 目标地址 /// public readonly SignalAddress TargetAddress; /// /// 信号数据 /// public readonly ByteBlock Data; public Signal(SignalAddress targetAddress, ByteBlock data) { TargetAddress = targetAddress; Data = data; } public Signal(SignalAddress targetAddress) : this(targetAddress, ByteBlock.Empty) { } }