ModernUO/Projects/Server
Kamron Batman be7da3a3dc
feat: Adds cliloc support and fixes valuestringbuilder ctor (#1013)
- [X] Adds cliloc support using the following API:
```cs
public static class Localization
{
    string GetText(int number);
    string GetText(int number, string lang);
    string Format(int number, params object[] args);
    string Format(int number, string lang, params object[] args);

    string Format(int number, $"{arg1}{arg2}{arg3}");
    string Format(int number, lang, $"{arg1}{arg2}{arg3}");

    bool TryGetLocalization(int number, out LocalizationEntry entry);
    bool TryGetLocalization(int number, string lang, out LocalizationEntry entry);
}

public class LocalizationEntry
{
    string Language { get; }
    string Number { get; }
    string Text { get; }
    string?[] TextSlices { get; } // Used for string building
    string StringFormatter { get; }

    string Format(params object[] args);
    string Format($"{arg1}{arg2}{arg3}");
}
```

- [X] Fixes a bug with ValueStringBuilder and default initialization size
- [X] Optimizes ValueStringBuilder to use `ISpanFormattable`
- [X] Adds `Append<T>(T value);` support ValueStringBuilder
- [X] Adds `Append($"");` string interpolation support to ValueStringBuider
2022-05-08 21:24:32 -07:00
..
Buffers feat: Adds cliloc support and fixes valuestringbuilder ctor (#1013) 2022-05-08 21:24:32 -07:00
Client fix: Fixes UOClient NPE (#952) 2022-02-28 17:24:00 -08:00
Collections fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
Comparers feat: Adds auto archiving (#794) 2021-09-25 17:22:05 -07:00
Configuration fix: Fixes NPC slowness. (#955) 2022-03-10 22:55:06 -08:00
ContextMenus chore: Cleans up pattern checks. (#892) 2021-12-24 15:53:59 -08:00
Diagnostics fix(core): Tightens the network stack (#479) 2021-02-07 23:30:56 -08:00
Events fix: Adds OnBeforeDisconnected and BeforeDisconnected eventsink (#1004) 2022-04-19 00:34:02 -07:00
Exceptions fix(core): Changes invalid gump response to write to network errors. (#510) 2021-02-15 08:31:53 -08:00
GarbageCollection fix: Adds Gen2 callback for each STArrayPool (#971) 2022-03-26 13:57:42 -07:00
Geometry fix: Cleans up Point checks and removes statics (#966) 2022-03-20 23:15:59 -07:00
Gumps fix: Uses variables for gump html localized (#970) 2022-03-22 23:51:36 -07:00
Items fix: Stops creating blocked packets entirely (#944) 2022-02-27 00:13:49 -08:00
Json fix: Fixes expansion flags for animations (#1009) 2022-05-01 18:35:42 -07:00
Localization feat: Adds cliloc support and fixes valuestringbuilder ctor (#1013) 2022-05-08 21:24:32 -07:00
Logging cleanup: Fixes bugs and cleans up code (#660) 2021-07-19 20:49:59 -07:00
Maps fix: Updates ArrayPool to STArrayPool for performance. (#968) 2022-03-22 20:07:32 -07:00
Menus Updates menu packets (#320) 2020-11-17 21:47:00 -08:00
Mobiles fix: Adds OnBeforeDisconnected and BeforeDisconnected eventsink (#1004) 2022-04-19 00:34:02 -07:00
Network fix: Fixes expansion flags for animations (#1009) 2022-05-01 18:35:42 -07:00
Random fix: Cleans up LINQ calls. (#965) 2022-03-20 19:20:54 -07:00
Regions fix: Fixes wrong point reference in building region (#982) 2022-03-30 13:14:29 -07:00
Serialization fix: Adds Poison to codegen (#1002) 2022-04-18 00:05:44 -07:00
Targeting fix: Fixes targeting range (#871) 2021-12-02 09:35:52 -08:00
Text fix: Updates ArrayPool to STArrayPool for performance. (#968) 2022-03-22 20:07:32 -07:00
TileMatrix feat: Adds a PooledRefList (#676) 2022-03-26 11:11:22 -07:00
Timer fix: Properly count timers for DumpInfo (#986) 2022-04-03 00:00:01 -07:00
TimeZones feat: Adds auto archiving (#794) 2021-09-25 17:22:05 -07:00
Utilities feat: Adds cliloc support and fixes valuestringbuilder ctor (#1013) 2022-05-08 21:24:32 -07:00
World fix: Adds Poison to codegen (#1002) 2022-04-18 00:05:44 -07:00
AssemblyHandler.cs fix: Cleans up file system paths and archiving (#815) 2021-10-05 08:54:44 -07:00
Attributes.cs chore: Cleans up pattern checks. (#892) 2021-12-24 15:53:59 -08:00
CityInfo.cs Cleanup/Housekeeping (#242) 2020-09-12 15:31:21 -07:00
Commands.cs feat: Adds StaffAccess and ResetStaffDress commands (#895) 2021-12-27 01:27:15 -08:00
Effects.cs fix(core): Cleans up uninitialized packets (#397) 2021-01-09 14:10:29 -08:00
EventLoopTasks.cs fix: Adds idle cpu config and forces on in debug (#790) 2021-09-17 00:15:16 -07:00
ExpansionInfo.cs fix: Fixes expansion flags for animations (#1009) 2022-05-01 18:35:42 -07:00
Guild.cs fix: Adds Created, LastSerialized, and BeforeSerialize for all entities. (#775) 2021-09-26 01:09:45 -07:00
HuePicker.cs fix(core): Removes implicit cast between Serial and uint (#728) 2021-08-25 00:27:19 -07:00
IAccount.cs fix(core): Fixes accounts and moves it to codegen (#644) 2021-06-05 19:39:16 -07:00
IEntity.cs fix: Adds Created, LastSerialized, and BeforeSerialize for all entities. (#775) 2021-09-26 01:09:45 -07:00
Interfaces.cs fix: Weapons cleanup (#857) 2021-11-21 09:19:09 -08:00
KeywordList.cs Cleanup/Housekeeping (#242) 2020-09-12 15:31:21 -07:00
Main.cs feat: Adds cliloc support and fixes valuestringbuilder ctor (#1013) 2022-05-08 21:24:32 -07:00
MultiData.cs fix: Fixes loading multi when client is missing (#996) 2022-04-14 16:52:45 -07:00
MUO.ico Adds MUO Logo (#52) 2019-09-12 13:13:13 -07:00
ObjectPropertyList.cs fix(core): Fixes OPL with stale header (#651) 2021-06-11 23:44:05 -07:00
Party.cs Cleanup/Housekeeping (#242) 2020-09-12 15:31:21 -07:00
Poison.cs fix: Adds Poison to codegen (#1002) 2022-04-18 00:05:44 -07:00
Prompt.cs Cleanup/Housekeeping (#242) 2020-09-12 15:31:21 -07:00
Race.cs fix: Updates races to properly support gargoyle equipment. (#744) 2021-08-29 00:43:55 -07:00
Sector.cs fix: Cleanup IPoint3D calls (#704) 2021-08-19 09:11:48 -07:00
SecureTrade.cs feat(timers): Adds timer pooling, fixes timer related bugs, and changes timer api (#667) 2021-08-07 14:33:35 -07:00
Serial.cs fix(core): Removes implicit cast between Serial and uint (#728) 2021-08-25 00:27:19 -07:00
Server.csproj fix: Adds Poison to codegen (#1002) 2022-04-18 00:05:44 -07:00
Skills.cs feat: Adds a PooledRefList (#676) 2022-03-26 11:11:22 -07:00
TileData.cs fix: Fixes movement issue (#814) 2021-10-03 19:19:26 -07:00
TileList.cs Cleanup/Housekeeping (#242) 2020-09-12 15:31:21 -07:00
VirtueInfo.cs Cleanup/Housekeeping (#242) 2020-09-12 15:31:21 -07:00