mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-09 21:59:16 +00:00
28 lines
649 B
C#
28 lines
649 B
C#
using QSB.Messaging;
|
|
using QuantumUNET;
|
|
|
|
namespace QSB.ConversationSync.Events
|
|
{
|
|
public class ConversationMessage : PlayerMessage
|
|
{
|
|
public ConversationType Type { get; set; }
|
|
public int ObjectId { get; set; }
|
|
public string Message { get; set; }
|
|
|
|
public override void Deserialize(QSBNetworkReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
ObjectId = reader.ReadInt32();
|
|
Type = (ConversationType)reader.ReadInt32();
|
|
Message = reader.ReadString();
|
|
}
|
|
|
|
public override void Serialize(QSBNetworkWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(ObjectId);
|
|
writer.Write((int)Type);
|
|
writer.Write(Message);
|
|
}
|
|
}
|
|
} |