ModernUO/Projects/Server/Serialization
Kamron Batman 3b97e8d39c
fix: Fixes stabled, abilities targeting self, and unsummon memory leak (#1418)
## **MAJOR CHANGE**
* `Stabled` has been moved to `PlayerMobile`.
* New methods added, `PlayerMobile.AddStabled` and `PlayerMobile.RemoveStabled`.
* Added `PlayerMobile.AddFollower` and `PlayerMobile.RemoveFollower`.
* `Stabled`, `AutoStabled`, and `AllFollowers` are now `HashSet` and **_CAN BE NULL_**.

### Summary
* Fixes monster abilities causing harm to the monster through reflect
* Adds `CanTriggerAgainstSelf` to override this for healing or some other self-affecting ability
* Fixes a major memory leak where `UnsummonTimer` from animated dead spell lasts up-to 24hrs and therefore holds onto references of dead/deleted mobs.
* Fixes another minor leak where a mob is not unregistered from the animated dead spell list until the next spell cast.
2023-07-03 09:45:22 -07:00
..
Attributes fix: Cleans up core code (#1187) 2022-10-10 21:47:08 -07:00
AdhocPersistence.cs fix: Adds ReadType/Write(Type) and improves type referencing (#1172) 2022-10-11 22:17:22 -07:00
BinaryFileReader.cs fix: Fixes serializing strings in GenericPersistence (#1228) 2022-11-04 19:14:50 -07:00
BinaryFileWriter.cs fix: Adds ReadType/Write(Type) and improves type referencing (#1172) 2022-10-11 22:17:22 -07:00
BufferReader.cs fix: Removes PoolOfAcid (#1310) 2022-12-22 13:20:34 -08:00
BufferWriter.cs fix: Fixes serializing float (#1375) 2023-03-15 00:37:01 -07:00
GenericPersistence.cs chore: Code Cleanup (#1239) 2022-11-10 22:49:25 -08:00
IGenericReader.cs fix: Optimizes TextDefinition to eliminate allocations. Removes TextDefinition ctor. (#1221) 2022-10-30 16:53:23 -07:00
IGenericWriter.cs feat: Adds TextDefinition serialization support. (#1217) 2022-10-30 01:42:48 -07:00
ISerializable.cs fix: Adds AfterSerialize support. Removes BeforeSerialize support. (#1208) 2022-10-27 23:27:22 -07:00
ISerializableExtensions.cs fix: Cleans up core code (#1187) 2022-10-10 21:47:08 -07:00
Persistence.cs fix: Adds AfterSerialize support. Removes BeforeSerialize support. (#1208) 2022-10-27 23:27:22 -07:00
SerializationExtensions.cs fix: Fixes stabled, abilities targeting self, and unsummon memory leak (#1418) 2023-07-03 09:45:22 -07:00