(3dc4135ce) v0.9.5.1
This commit is contained in:
@@ -18,7 +18,9 @@ namespace Barotrauma.Networking
|
||||
public const int MaxMessagesPerPacket = 10;
|
||||
|
||||
public const float SpeakRange = 2000.0f;
|
||||
|
||||
|
||||
private static readonly string dateTimeFormatLongTimePattern = System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.ShortTimePattern;
|
||||
|
||||
public static Color[] MessageColor =
|
||||
{
|
||||
new Color(190, 198, 205), //default
|
||||
@@ -66,6 +68,11 @@ namespace Barotrauma.Networking
|
||||
get { return MessageColor[(int)Type]; }
|
||||
}
|
||||
|
||||
public static string GetTimeStamp()
|
||||
{
|
||||
return $"[{DateTime.Now.ToString(dateTimeFormatLongTimePattern)}] ";
|
||||
}
|
||||
|
||||
public string TextWithSender
|
||||
{
|
||||
get
|
||||
|
||||
Reference in New Issue
Block a user