mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-09 12:54:51 +00:00
22 lines
453 B
C#
22 lines
453 B
C#
using QSB.WorldSync.Events;
|
|
using QuantumUNET.Transport;
|
|
|
|
namespace QSB.QuantumSync.Events
|
|
{
|
|
public class MultiStateChangeMessage : WorldObjectMessage
|
|
{
|
|
public int StateIndex { get; set; }
|
|
|
|
public override void Deserialize(QNetworkReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
StateIndex = reader.ReadInt32();
|
|
}
|
|
|
|
public override void Serialize(QNetworkWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(StateIndex);
|
|
}
|
|
}
|
|
} |