Core/PacketIO: Implement new guild bank item swap opcodes

Port From (https://github.com/TrinityCore/TrinityCore/commit/7f7ccfd6cddc8b6daec92390093f677bcd0a9aa4)
This commit is contained in:
hondacrx
2021-05-23 17:24:29 -04:00
parent d5080b02a9
commit 3d4f6c71f4
2 changed files with 111 additions and 87 deletions
+5
View File
@@ -44,6 +44,11 @@ namespace Framework.Dynamic
Value = default;
}
public T ValueOr(T otherValue)
{
return HasValue ? Value : otherValue;
}
public static explicit operator T(Optional<T> value)
{
return (T)value;