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