quantum-space-buddies/QSB/WorldSync/Messages/WorldObjectInfoMessage.cs
2024-02-14 21:40:56 +00:00

18 lines
566 B
C#

using QSB.Messaging;
using QSB.Utility.Deterministic;
namespace QSB.WorldSync.Messages;
/// <summary>
/// Sent by clients to the server after receiving a RequestHashBreakdown message.
/// </summary>
public class WorldObjectInfoMessage : QSBMessage<(string fullPath, string managerName)>
{
public WorldObjectInfoMessage(IWorldObject obj, string managerName) : base((obj.AttachedObject.DeterministicPath(), managerName)) => To = 0;
public override void OnReceiveRemote()
{
HashErrorAnalysis.Instances[Data.managerName].OnReceiveMessage(Data.fullPath);
}
}