ModernUO/Projects/UOContent/Engines/Bulk Orders
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
..
Books fix: Fixes serialization and dirty tracking conveniences (#1627) 2023-12-03 15:55:31 -08:00
BaseBOD.cs fix: Fixes double call to AfterDeserialization (#1372) 2023-03-12 10:21:04 -07:00
BODTarget.cs fix(core): Converts more packets and switches to Moq (#415) 2021-01-16 22:09:05 -08:00
BulkMaterialType.cs cleanup: Fixes bugs and cleans up code (#660) 2021-07-19 20:49:59 -07:00
LargeBOD.cs fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
LargeBODAcceptGump.cs fix(core): Converts more packets and switches to Moq (#415) 2021-01-16 22:09:05 -08:00
LargeBODGump.cs fix(core): Converts more packets and switches to Moq (#415) 2021-01-16 22:09:05 -08:00
LargeBulkEntry.cs fix(codegen): Fixes bulk order deed hue and codegens (#647) 2021-06-11 19:51:03 -07:00
LargeSmithBOD.cs fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
LargeTailorBOD.cs fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
Rewards.cs chore: Cleans up pattern checks. (#892) 2021-12-24 15:53:59 -08:00
SmallBOD.cs fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
SmallBODAcceptGump.cs fix(core): Converts more packets and switches to Moq (#415) 2021-01-16 22:09:05 -08:00
SmallBODGump.cs fix(core): Converts more packets and switches to Moq (#415) 2021-01-16 22:09:05 -08:00
SmallBulkEntry.cs fix(core): Fixes type caching & cleanup (#422) 2021-01-20 00:10:33 -08:00
SmallSmithBOD.cs fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
SmallTailorBOD.cs fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00