mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 09:32:38 +00:00
18 lines
561 B
C#
18 lines
561 B
C#
using QSB.Messaging;
|
|
using QSB.Player;
|
|
using QSB.QuantumSync;
|
|
using QSB.Tools.ProbeLauncherTool.WorldObjects;
|
|
|
|
namespace QSB.Tools.ProbeLauncherTool.Messages;
|
|
|
|
public class TakeSnapshotMessage : QSBWorldObjectMessage<QSBProbeLauncher, ProbeCamera.ID>
|
|
{
|
|
public TakeSnapshotMessage(ProbeCamera.ID cameraId) : base(cameraId) { }
|
|
|
|
public override void OnReceiveLocal()
|
|
=> QuantumManager.OnTakeProbeSnapshot(QSBPlayerManager.LocalPlayer, Data);
|
|
|
|
public override void OnReceiveRemote()
|
|
=> WorldObject.TakeSnapshot(QSBPlayerManager.GetPlayer(From), Data);
|
|
}
|