Remove custom OptionalType and use the default c# nullable type.

This commit is contained in:
hondacrx
2022-03-01 17:27:56 -05:00
parent cc08afe269
commit c14f1eb3dc
89 changed files with 924 additions and 976 deletions
@@ -241,18 +241,18 @@ namespace Game.Networking.Packets
data.WriteInt32(StackCount);
data.WritePackedGuid(GiftCreator);
Item.Write(data);
data.WriteBit(Unwrapped.HasValue);
data.WriteBit(Unwrapped != null);
data.FlushBits();
if (Unwrapped.HasValue)
Unwrapped.Value.Write(data);
if (Unwrapped != null)
Unwrapped.Write(data);
}
public byte Slot;
public ItemInstance Item = new();
public int StackCount;
public ObjectGuid GiftCreator;
public Optional<UnwrappedTradeItem> Unwrapped;
public UnwrappedTradeItem Unwrapped;
}
public ulong Gold;