v1.5.7.0 (Summer Update)

This commit is contained in:
Regalis11
2024-06-18 16:49:51 +03:00
parent 4a63dacbce
commit 230d1b6e78
263 changed files with 7792 additions and 2845 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;
}
}