Core/PacketIO: Implement new guild bank item swap opcodes
Port From (https://github.com/TrinityCore/TrinityCore/commit/7f7ccfd6cddc8b6daec92390093f677bcd0a9aa4)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user