quantum-space-buddies/QSB/TranslationSync/Events/SetAsTranslatedMessage.cs
Mister_Nebula 53974485c9
Spiral sync (#242)
* add stuff

* extract patches

* extract worldobjects (#241)

* add spiral sync

* cleanup

* cleanup

* fix

* rename

* add computers

* remove qnet flagshelper

* Update README.md

* cleanup
2020-12-31 12:10:55 +00:00

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);
}
}
}