quantum-space-buddies/QSB/QuantumSync/Events/MultiStateChangeMessage.cs

22 lines
453 B
C#
Raw Normal View History

2020-12-23 10:43:13 +00:00
using QSB.WorldSync.Events;
using QuantumUNET.Transport;
namespace QSB.QuantumSync.Events
{
2020-12-23 11:26:47 +00:00
public class MultiStateChangeMessage : WorldObjectMessage
2020-12-23 10:43:13 +00:00
{
public int StateIndex { get; set; }
2020-12-23 12:58:45 +00:00
public override void Deserialize(QNetworkReader reader)
2020-12-23 10:43:13 +00:00
{
base.Deserialize(reader);
StateIndex = reader.ReadInt32();
}
2020-12-23 12:58:45 +00:00
public override void Serialize(QNetworkWriter writer)
2020-12-23 10:43:13 +00:00
{
base.Serialize(writer);
writer.Write(StateIndex);
}
}
}