ModernUO/Projects/UOContent/Commands
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
..
Generic fix: Fixes vendor OPL (#672) 2021-08-03 00:34:44 -07:00
Object Creation fix(types): Fixes casting spell by type and [Add keyword search (#668) 2021-08-01 13:18:01 -07:00
Attributes.cs Cleanup & Fixes for .NET 5 (#309) 2020-11-15 10:03:50 -08:00
Batch.cs fix(core): Updates slice with range selectors (#583) 2021-04-23 20:57:24 -07:00
BoundingBoxPicker.cs Fixes brace style (#248) 2020-09-13 21:49:46 -07:00
DragEffects.cs Cleanup & Fixes for .NET 5 (#309) 2020-11-15 10:03:50 -08:00
Dupe.cs cleanup: Fixes bugs and cleans up code (#660) 2021-07-19 20:49:59 -07:00
ExportWSC.cs Cleanup & Fixes for .NET 5 (#309) 2020-11-15 10:03:50 -08:00
Handlers.cs feat: Command prefix is now configurable via settings (#572) 2021-04-15 13:53:15 -07:00
HelpInfo.cs fix(core): Fixes call priority (#553) 2021-03-15 16:51:27 -07:00
LocationCommand.cs C# 9 Cleanup (#325) 2020-11-27 00:29:21 -08:00
Logging.cs cleanup: Fixes bugs and cleans up code (#660) 2021-07-19 20:49:59 -07:00
Profiling.cs feat: Adds tidy option for serialization. Codegens ballotbox. Fixes pooled timer leaking (#681) 2021-08-14 03:02:53 -07:00
Properties.cs fix(core): Updates slice with range selectors (#583) 2021-04-23 20:57:24 -07:00
ShardTime.cs cleanup: Fixes bugs and cleans up code (#660) 2021-07-19 20:49:59 -07:00
SignParser.cs fix(core): Updates slice with range selectors (#583) 2021-04-23 20:57:24 -07:00
Skills.cs Cleanup & Fixes for .NET 5 (#309) 2020-11-15 10:03:50 -08:00
SkillsMenu.cs Cleanup & Fixes for .NET 5 (#309) 2020-11-15 10:03:50 -08:00
Statics.cs fix(core): Optimizes strings / .NET 5 compatibility changes (#354) 2020-12-20 23:21:55 -08:00
VisibilityList.cs fix(core): Cleans up uninitialized packets (#397) 2021-01-09 14:10:29 -08:00
Wipe.cs Cleanup & Fixes for .NET 5 (#309) 2020-11-15 10:03:50 -08:00