21 lines
515 B
C#
Raw Normal View History

2023-05-07 18:24:02 +01:00
using QSB.Messaging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
2023-05-07 18:24:02 +01:00
namespace QSB.HUD.Messages;
internal class ChatMessage : QSBMessage<(string message, Color color)>
2023-05-07 18:24:02 +01:00
{
public ChatMessage(string msg, Color color) : base((msg, color)) { }
2023-05-07 18:24:02 +01:00
public override void OnReceiveLocal() => OnReceiveRemote();
public override void OnReceiveRemote()
{
MultiplayerHUDManager.Instance.WriteMessage(Data.message, Data.color);
2023-05-07 18:24:02 +01:00
}
}