quantum-space-buddies/QSB/HUD/Messages/ChatMessage.cs
2023-05-07 18:24:02 +01:00

20 lines
434 B
C#

using QSB.Messaging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QSB.HUD.Messages;
internal class ChatMessage : QSBMessage<string>
{
public ChatMessage(string msg) : base(msg) { }
public override void OnReceiveLocal() => OnReceiveRemote();
public override void OnReceiveRemote()
{
MultiplayerHUDManager.Instance.RegisterMessage(Data);
}
}