mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 09:35:26 +00:00
49fa4d1eeb
* oh my god so many things * i came in and rewrote half the mod, sorry
28 lines
655 B
C#
28 lines
655 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using QSB.Messaging;
|
|
using UnityEngine.Networking;
|
|
|
|
namespace QSB.Events
|
|
{
|
|
public class FullStateMessage : PlayerMessage
|
|
{
|
|
public override MessageType MessageType => MessageType.FullState;
|
|
|
|
public string PlayerName { get; set; }
|
|
|
|
public override void Deserialize(NetworkReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
PlayerName = reader.ReadString();
|
|
}
|
|
|
|
public override void Serialize(NetworkWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(PlayerName);
|
|
}
|
|
}
|
|
}
|