ModernUO/Projects/Server/Network/Packets
Kamron Batman b74b47159f
fix: Fixes localization corner cases with OPL (#1050)
## Changes
- [X] Adds OPL convenience methods
    - `opl.Add(cliloc, value)` and `opl.Add(value)` - value as an integer or string works just like `opl.Add(cliloc, $"{value}")`
    - `opl.AddLocalized(cliloc, clilocValue)` - works the same as `opl.Add(cliloc, $"#{clilocValue}");`
- [X] Simplifies basic `list.Add()` situations
- [X] Changes cliloc as an argument so it works with custom IPropertyList implementations (HTML)
- [X] Fixes plants so they support the old localization and new (changed in 7.0.12.0+)
- [X] Exposes more methods to override for Item to make creating custom OPL possible.

## Important Notes
* Using a ternary as an argument, like this `opl.Add(number, showType ? $"{type}\t{value}" : $"{value}");` _will not use the correct string interpolation_. This means if you use a custom PropertyList (for HTML or some other purpose), the property list won't be localized properly.
* All localization values must be interpolated, even if they are literal strings, or integers. Example: `opl.Add(number, $"{"Charges"}\t{m_Charges}");` is correct. Using the following: `$"Charges\t{m_Charges}"` will not work for custom PropertyList implementations!
2022-06-12 21:17:42 -07:00
..
IncomingAccountPackets.cs fix: Fixes packet length checks (#953) 2022-03-04 12:32:25 -08:00
IncomingEntityPackets.cs fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
IncomingExtendedCommandPackets.cs fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
IncomingHousePackets.cs fix: Fixes packet length checks (#953) 2022-03-04 12:32:25 -08:00
IncomingItemPackets.cs fix: Removes DropReq6017 (#1030) 2022-05-20 12:11:31 -07:00
IncomingMessagePackets.cs fix: Fixes packet length checks (#953) 2022-03-04 12:32:25 -08:00
IncomingMobilePackets.cs fix: Fixes packet length checks (#953) 2022-03-04 12:32:25 -08:00
IncomingMovementPackets.cs fix: Fixes packet length checks (#953) 2022-03-04 12:32:25 -08:00
IncomingPackets.cs fix: Adds freeshard protocol to information list (#1038) 2022-05-30 09:35:46 -07:00
IncomingPlayerPackets.cs fix: Fixes structured logging (#1043) 2022-06-05 01:00:22 -07:00
IncomingTargetingPackets.cs fix: Fixes packet length checks (#953) 2022-03-04 12:32:25 -08:00
IncomingVendorPackets.cs feat: Adds a PooledRefList (#676) 2022-03-26 11:11:22 -07:00
OutgoingAccountPackets.cs fix: Fixes expansion flags for animations (#1009) 2022-05-01 18:35:42 -07:00
OutgoingCombatPackets.cs fix: Stops creating blocked packets entirely (#944) 2022-02-27 00:13:49 -08:00
OutgoingContainerPackets.cs fix: Stops creating blocked packets entirely (#944) 2022-02-27 00:13:49 -08:00
OutgoingDamagePackets.cs fix: Stops creating blocked packets entirely (#944) 2022-02-27 00:13:49 -08:00
OutgoingEffectPackets.cs fix: Stops creating blocked packets entirely (#944) 2022-02-27 00:13:49 -08:00
OutgoingEntityPackets.cs fix: Optimizes OPL using string interpolation (#1041) 2022-06-02 10:09:53 -07:00
OutgoingEquipmentPackets.cs fix: Stops creating blocked packets entirely (#944) 2022-02-27 00:13:49 -08:00
OutgoingGumpPackets.cs fix: Fixes structured logging (#1043) 2022-06-05 01:00:22 -07:00
OutgoingItemPackets.cs fix: Stops creating blocked packets entirely (#944) 2022-02-27 00:13:49 -08:00
OutgoingLightPackets.cs fix: Stops creating blocked packets entirely (#944) 2022-02-27 00:13:49 -08:00
OutgoingMapPackets.cs fix: Stops creating blocked packets entirely (#944) 2022-02-27 00:13:49 -08:00
OutgoingMenuPackets.cs fix: Stops creating blocked packets entirely (#944) 2022-02-27 00:13:49 -08:00
OutgoingMessagePackets.cs fix: Stops creating blocked packets entirely (#944) 2022-02-27 00:13:49 -08:00
OutgoingMobilePackets.cs fix: Cleans up mobile status packets (#835) 2022-02-27 03:10:35 -08:00
OutgoingMovementPackets.cs fix: Stops creating blocked packets entirely (#944) 2022-02-27 00:13:49 -08:00
OutgoingPackets.cs fix: Stops creating blocked packets entirely (#944) 2022-02-27 00:13:49 -08:00
OutgoingPlayerPackets.cs fix: Stops creating blocked packets entirely (#944) 2022-02-27 00:13:49 -08:00
OutgoingSecureTradePackets.cs fix: Stops creating blocked packets entirely (#944) 2022-02-27 00:13:49 -08:00
OutgoingTargetPackets.cs fix: Stops creating blocked packets entirely (#944) 2022-02-27 00:13:49 -08:00
OutgoingVendorBuyPackets.cs fix: Stops creating blocked packets entirely (#944) 2022-02-27 00:13:49 -08:00
OutgoingVendorSellPackets.cs fix: Stops creating blocked packets entirely (#944) 2022-02-27 00:13:49 -08:00
PacketContainerBuilder.cs fix: Updates ArrayPool to STArrayPool for performance. (#968) 2022-03-22 20:07:32 -07:00