2020-08-13 17:25:12 +00:00
|
|
|
|
using QSB.Messaging;
|
2020-08-13 13:32:58 +00:00
|
|
|
|
using UnityEngine.Networking;
|
|
|
|
|
|
2020-08-13 17:25:12 +00:00
|
|
|
|
namespace QSB.WorldSync
|
2020-08-13 13:32:58 +00:00
|
|
|
|
{
|
|
|
|
|
public class WorldObjectMessage : PlayerMessage
|
|
|
|
|
{
|
2020-08-13 18:47:23 +00:00
|
|
|
|
public int ObjectId { get; set; }
|
2020-08-13 13:32:58 +00:00
|
|
|
|
|
|
|
|
|
public override void Deserialize(NetworkReader reader)
|
|
|
|
|
{
|
|
|
|
|
base.Deserialize(reader);
|
2020-08-13 18:47:23 +00:00
|
|
|
|
ObjectId = reader.ReadInt32();
|
2020-08-13 13:32:58 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Serialize(NetworkWriter writer)
|
|
|
|
|
{
|
|
|
|
|
base.Serialize(writer);
|
2020-08-13 18:47:23 +00:00
|
|
|
|
writer.Write(ObjectId);
|
2020-08-13 13:32:58 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|