quantum-space-buddies/QSB/QuantumSync/Messages/QuantumShuffleMessage.cs

12 lines
349 B
C#
Raw Normal View History

using QSB.Messaging;
2021-12-25 22:04:46 -08:00
using QSB.QuantumSync.WorldObjects;
2021-01-01 10:17:35 +00:00
namespace QSB.QuantumSync.Messages
2021-01-01 10:17:35 +00:00
{
internal class QuantumShuffleMessage : QSBWorldObjectMessage<QSBQuantumShuffleObject, int[]>
{
public QuantumShuffleMessage(int[] indexArray) => Data = indexArray;
2021-01-01 10:17:35 +00:00
public override void OnReceiveRemote() => WorldObject.ShuffleObjects(Data);
}
}