added implicit conversion to Identifier

This commit is contained in:
Evil Factory
2022-04-14 16:22:33 -03:00
parent eb20ff1a4e
commit 5ceaa510eb

View File

@@ -121,6 +121,11 @@ namespace Barotrauma
public static bool operator !=(string str, in Identifier? identifier) =>
!(identifier == str);
public static implicit operator Identifier(string str)
{
return new Identifier(str);
}
}
public static class IdentifierExtensions