mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-22 03:40:54 +00:00
26 lines
574 B
C#
26 lines
574 B
C#
|
using QSB.WorldSync.Events;
|
|||
|
using QuantumUNET.Transport;
|
|||
|
|
|||
|
namespace QSB.TranslationSync.Events
|
|||
|
{
|
|||
|
public class SetAsTranslatedMessage : WorldObjectMessage
|
|||
|
{
|
|||
|
public int TextId { get; set; }
|
|||
|
public NomaiTextType TextType { get; set; }
|
|||
|
|
|||
|
public override void Deserialize(QNetworkReader reader)
|
|||
|
{
|
|||
|
base.Deserialize(reader);
|
|||
|
TextId = reader.ReadInt32();
|
|||
|
TextType = (NomaiTextType)reader.ReadInt16();
|
|||
|
}
|
|||
|
|
|||
|
public override void Serialize(QNetworkWriter writer)
|
|||
|
{
|
|||
|
base.Serialize(writer);
|
|||
|
writer.Write(TextId);
|
|||
|
writer.Write((short)TextType);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|