ModernUO/Projects/Server
Kamron Batman 360143478a
feat: Adds tidy option for serialization. Codegens ballotbox. Fixes pooled timer leaking (#681)
* Fixes pooled timer leaking
* Fixes `[dumptimers` command so it outputs properly, adds spacing, and stacktraces
* Adds `[Tidy]` for serializing Lists. This will remove deleted entities during world save before serializing the list.
* Adds helpers for managing Lists/Sets/Dictionaries


### New API

```cs
// Creates the list if it is null, then adds
Utility.Add(ref list, value);
Utility.Add(ref set, value);
Utility.Add(ref dict, key, value);

// Nulls the variable if the count is zero
Utility.Remove(ref list, value);
Utility.Remove(ref set, value);
Utility.Remove(ref dict, key);

// Marks entity as dirty in addition to doing the action
entity.Add(list, value);
// Marks entity as dirty, and will create list if it doesn't exist
entity.Add(ref list, value);

// Marks entity as dirty in addition to doing the action
entity.Remove(list, value);
// Marks entity as dirty, and will null the list count is zero
entity.Remove(ref list, value);
```


### Updates to [dumptimers
<img width="825" alt="Screen Shot 2021-08-14 at 2 55 10 AM" src="https://user-images.githubusercontent.com/3953314/129442449-ccf7fe14-29d6-4f3f-9366-c8eb7b9828a7.png">
2021-08-14 03:02:53 -07:00
..
Buffers fix(core): Updates to serialization (#590) 2021-05-09 00:10:39 -07:00
Collections feat: Adds tidy option for serialization. Codegens ballotbox. Fixes pooled timer leaking (#681) 2021-08-14 03:02:53 -07:00
Comparers Splits up mobile (#296) 2020-10-31 23:30:51 -07:00
Configuration fix: Updates first load configuration (#680) 2021-08-08 23:42:10 -07:00
ContextMenus fix(core): Removes some uses of Linq (#421) 2021-01-18 21:05:11 -08:00
Diagnostics fix(core): Tightens the network stack (#479) 2021-02-07 23:30:56 -08:00
Events fix(core): Fixes flow for saves, adds logging and configurations (#513) 2021-02-20 19:32:08 -08:00
Exceptions fix(core): Changes invalid gump response to write to network errors. (#510) 2021-02-15 08:31:53 -08:00
Geometry chore: Code cleanup (#399) 2021-01-10 09:14:03 -08:00
Gumps fix(core): Changes invalid gump response to write to network errors. (#510) 2021-02-15 08:31:53 -08:00
Items feat: Adds tidy option for serialization. Codegens ballotbox. Fixes pooled timer leaking (#681) 2021-08-14 03:02:53 -07:00
Json fix(core): Fixes region base type (#635) 2021-06-02 23:12:52 -07:00
Logging cleanup: Fixes bugs and cleans up code (#660) 2021-07-19 20:49:59 -07:00
Maps fix: Removes players from sectors (#682) 2021-08-13 21:25:24 -07:00
Menus Updates menu packets (#320) 2020-11-17 21:47:00 -08:00
Mobiles feat(timers): Adds timer pooling, fixes timer related bugs, and changes timer api (#667) 2021-08-07 14:33:35 -07:00
Network feat: Adds tidy option for serialization. Codegens ballotbox. Fixes pooled timer leaking (#681) 2021-08-14 03:02:53 -07:00
Random fix(core): Changes random source to use debut assert (#603) 2021-05-15 20:15:22 -07:00
Regions fix: Removes players from sectors (#682) 2021-08-13 21:25:24 -07:00
Serialization feat: Adds tidy option for serialization. Codegens ballotbox. Fixes pooled timer leaking (#681) 2021-08-14 03:02:53 -07:00
Targeting cleanup: Fixes bugs and cleans up code (#660) 2021-07-19 20:49:59 -07:00
Text fix(core): Updates to serialization (#590) 2021-05-09 00:10:39 -07:00
TileMatrix fix(codegen): Adds manual dirty checking (#621) 2021-05-27 00:54:21 -07:00
Timer feat: Adds tidy option for serialization. Codegens ballotbox. Fixes pooled timer leaking (#681) 2021-08-14 03:02:53 -07:00
Utilities feat: Adds tidy option for serialization. Codegens ballotbox. Fixes pooled timer leaking (#681) 2021-08-14 03:02:53 -07:00
World feat(timers): Adds timer pooling, fixes timer related bugs, and changes timer api (#667) 2021-08-07 14:33:35 -07:00
AssemblyHandler.cs fix(core): Adds Hashed & Hierarchical Timer Wheel (#655) 2021-07-11 22:42:06 -07:00
Attributes.cs fix(core): Fixes some properties that cannot be modified ingame (#604) 2021-05-15 23:47:33 -07:00
CityInfo.cs Cleanup/Housekeeping (#242) 2020-09-12 15:31:21 -07:00
ClientVersion.cs fix(core): Updates slice with range selectors (#583) 2021-04-23 20:57:24 -07:00
Commands.cs fix(core): Updates slice with range selectors (#583) 2021-04-23 20:57:24 -07:00
Effects.cs fix(core): Cleans up uninitialized packets (#397) 2021-01-09 14:10:29 -08:00
EventLoopTasks.cs feat(timers): Adds timer pooling, fixes timer related bugs, and changes timer api (#667) 2021-08-07 14:33:35 -07:00
ExpansionInfo.cs fix(core): Fixes map issues at New Haven (#509) 2021-02-14 16:06:49 -08:00
Guild.cs fix(codegen): Adds manual dirty checking (#621) 2021-05-27 00:54:21 -07:00
HuePicker.cs fix(core): Converts remaining player packets (#374) 2020-12-30 16:09:51 -08:00
IAccount.cs fix(core): Fixes accounts and moves it to codegen (#644) 2021-06-05 19:39:16 -07:00
IEntity.cs feat(timers): Adds timer pooling, fixes timer related bugs, and changes timer api (#667) 2021-08-07 14:33:35 -07:00
Interfaces.cs Cleanup/Housekeeping (#242) 2020-09-12 15:31:21 -07:00
KeywordList.cs Cleanup/Housekeeping (#242) 2020-09-12 15:31:21 -07:00
Main.cs fix: Updates first load configuration (#680) 2021-08-08 23:42:10 -07:00
MultiData.cs fix(core): Moves map definitions and cleans up loading maps, regions, and tiles (#431) 2021-01-25 11:05:52 -08:00
MUO.ico Adds MUO Logo (#52) 2019-09-12 13:13:13 -07:00
NativeReader.cs cleanup: Fixes bugs and cleans up code (#660) 2021-07-19 20:49:59 -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 C# 9 Cleanup (#325) 2020-11-27 00:29:21 -08:00
Prompt.cs Cleanup/Housekeeping (#242) 2020-09-12 15:31:21 -07:00
Race.cs fix(core): Optimizes strings / .NET 5 compatibility changes (#354) 2020-12-20 23:21:55 -08:00
Sector.cs feat: Adds tidy option for serialization. Codegens ballotbox. Fixes pooled timer leaking (#681) 2021-08-14 03:02:53 -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): Reverts change to Serial.IsValid (#596) 2021-05-12 09:59:03 -07:00
Server.csproj fix(build): Fixes building with VS 2019 16.10+ (#661) 2021-07-19 21:43:29 -07:00
Skills.cs fix(core): Fixes some properties that cannot be modified ingame (#604) 2021-05-15 23:47:33 -07:00
TileData.cs fix(core): Cleans up serialization (#606) 2021-05-16 13:45:32 -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