ModernUO/Projects/UOContent/Items/Skill Items
Kamron Batman b7882df136
fix: Fixes serialization and dirty tracking conveniences (#1627)
### Summary
- Fixes issues with non-_ISerializable_ objects having bad serialization (Skill/Stat. Mods)
- Fixes issues with MarkDirty and namespaces: https://github.com/modernuo/SerializationGenerator/issues/29
- Fixes missing dirty tracking for some data structures.
- Fixes cascading MarkDirty for non-serializable types that have owners that are also non-serializable types.

### New Codegenned API
When a data structure (Array, List, Dictionary, HashSet, etc) is source generated for serialization, new methods are added which will handle dirty tracking. Use these instead of the built in methods for that data structure.

_All Data Structures_
```cs
public void Clear<PropertyName>();
```

_Lists and Sets_
```cs
public void AddTo<PropertyName>(V value);
public void RemoveFrom<PropertyName>(V value);
```

_Lists_
```cs
public void InsertInto<PropertyName>(int index, V value);
public void RemoveFrom<PropertyName>At(int index);
```

_Dictionaries_
```cs
public void AddTo<PropertyName>(T key, V value);
public void RemoveFrom<PropertyName>(T key);
public void ReplaceIn<PropertyName>(T key, V value);
```

Over time, they will be cleaned up and more variants added such as `bool RemoveFrom<PropertyName>(T key, out V value)`
2023-12-03 15:55:31 -08:00
..
Blacksmith Items/Misc fix: Codegens blacksmith, camping, and carpenter skill items (#1278) 2022-11-24 00:57:23 -08:00
Camping fix: Adds GetClients to map iterators (#1574) 2023-10-30 18:49:00 -07:00
Carpenter Items fix: Fixes crafter deserialize, cleans up bandages, and codegens misc items (#1350) 2023-02-25 00:54:12 -08:00
Fishing fix: Fixes crafter deserialize, cleans up bandages, and codegens misc items (#1350) 2023-02-25 00:54:12 -08:00
Harvest Tools fix: Fixes the limitation on static tiles for harvesting (#1396) 2023-04-22 09:14:42 -07:00
Lumberjack fix: Codegens tools and magical skill items (#1299) 2022-12-07 20:46:41 -08:00
Magical fix: Fixes serialization and dirty tracking conveniences (#1627) 2023-12-03 15:55:31 -08:00
Misc fix: Fixes TimeSpan rounding issues (#1610) 2023-11-22 18:03:56 -08:00
Musical Instruments fix: Localizes specialized books, codegens instruments (#1352) 2023-02-25 10:56:05 -08:00
Ninjitsu fix: Localizes specialized books, codegens instruments (#1352) 2023-02-25 10:56:05 -08:00
Specialized fix: Localizes specialized books, codegens instruments (#1352) 2023-02-25 10:56:05 -08:00
Tailor Items fix: Updates disguises and codegens tinkering items (#1353) 2023-02-25 12:01:06 -08:00
Thief fix: Fixes serialization on disguise kits (#1595) 2023-11-17 00:04:04 -08:00
Tinkering fix: Updates disguises and codegens tinkering items (#1353) 2023-02-25 12:01:06 -08:00
Tools fix: Codegens tools (#1354) 2023-02-25 13:54:05 -08:00