quantum-space-buddies/QSB/ConversationSync/Events/ConversationStartEndMessage.cs

29 lines
778 B
C#
Raw Normal View History

2020-10-24 14:31:20 +00:00
using QSB.Messaging;
using UnityEngine.Networking;
2020-11-03 17:56:48 +00:00
namespace QSB.ConversationSync.Events
2020-10-24 14:31:20 +00:00
{
public class ConversationStartEndMessage : PlayerMessage
{
public int CharacterId { get; set; }
public uint PlayerId { get; set; }
public bool State { get; set; }
public override void Deserialize(NetworkReader reader)
{
base.Deserialize(reader);
CharacterId = reader.ReadInt32();
PlayerId = reader.ReadUInt32();
State = reader.ReadBoolean();
}
public override void Serialize(NetworkWriter writer)
{
base.Serialize(writer);
writer.Write(CharacterId);
writer.Write(PlayerId);
writer.Write(State);
}
}
}