first commit
This commit is contained in:
24
NitroxClient/GameLogic/ChatUI/ChatLogEntry.cs
Normal file
24
NitroxClient/GameLogic/ChatUI/ChatLogEntry.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
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");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user