25 lines
676 B
C#
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");
|
|
}
|
|
}
|