v1.4.4.1 (Blood in the Water Update)

This commit is contained in:
Regalis11
2024-04-24 18:09:05 +03:00
parent 89b91d1c3e
commit ff1b8951a7
397 changed files with 15250 additions and 6479 deletions
@@ -0,0 +1,22 @@
#nullable enable
namespace Barotrauma
{
internal readonly struct NetLimitedString
{
public readonly string Value;
public const int MaxLength = 255;
public static readonly NetLimitedString Empty = new(string.Empty);
public NetLimitedString(string value)
{
Value = value.Length > MaxLength
? value[..MaxLength]
: value;
}
public override string ToString()
=> Value;
}
}