ModernUO/Projects/UOContent/Items/Aquarium
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
..
Fish fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
Reward Fish fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
Rewards fix: Optimizes OPL using string interpolation (#1041) 2022-06-02 10:09:53 -07:00
Aquarium.cs fix: Fixes serialization and dirty tracking conveniences (#1627) 2023-12-03 15:55:31 -08:00
AquariumFishingNet.cs fix: Optimizes OPL using string interpolation (#1041) 2022-06-02 10:09:53 -07:00
AquariumFood.cs fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
AquariumGump.cs Fixes brace style (#248) 2020-09-13 21:49:46 -07:00
AquariumState.cs feat: Adds SerializedCommandProperty (#1249) 2022-11-14 18:24:33 -08:00
BaseFish.cs fix: Optimizes OPL using string interpolation (#1041) 2022-06-02 10:09:53 -07:00
FishBowl.cs fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00
VacationWafer.cs fix: Fixes localization corner cases with OPL (#1050) 2022-06-12 21:17:42 -07:00