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

12 lines
349 B
C#

using QSB.Messaging;
using QSB.QuantumSync.WorldObjects;
namespace QSB.QuantumSync.Messages
{
internal class QuantumShuffleMessage : QSBWorldObjectMessage<QSBQuantumShuffleObject, int[]>
{
public QuantumShuffleMessage(int[] indexArray) => Data = indexArray;
public override void OnReceiveRemote() => WorldObject.ShuffleObjects(Data);
}
}