Files
Nitrox/NitroxClient/GameLogic/ChatUI/ChatLogEntry.cs
2025-07-06 00:23:46 +02:00

25 lines
676 B
C#

using System;
using UnityEngine;
namespace NitroxClient.GameLogic.ChatUI
{
public class ChatLogEntry
{
public string PlayerName { get; }
public string MessageText { get; set; }
public Color32 PlayerColor { get; }
public string Time { get; set; }
public GameObject EntryObject { get; set; }
public ChatLogEntry(string playerName, string messageText, Color32 playerColor)
{
PlayerName = playerName;
MessageText = messageText;
PlayerColor = playerColor;
UpdateTime();
}
public void UpdateTime() => Time = DateTime.Now.ToString("HH:mm");
}
}