Closed mbaker3 closed 1 year ago
Add the attribute [WorldUniqueTaskDriver] which may be applied to task driver instances that only support a single instance per world.
[WorldUniqueTaskDriver]
ENABLE_UNITY_COLLECTIONS_CHECKS
ANVIL_DEBUG_SAFETY
There are no uniqueness constraints on task drivers.
If the [WorldUniqueTaskDriver] attribute is present, AbstractTaskDriverSystem will throw an exception when the second instance is registered.
AbstractTaskDriverSystem
If you're relying on ENABLE_UNITY_COLLECTIONS_CHECKS for the affected task driver safety make sure ANVIL_DEBUG_SAFETY is enabled.
Add the attribute
[WorldUniqueTaskDriver]
which may be applied to task driver instances that only support a single instance per world.Tag Alongs
ENABLE_UNITY_COLLECTIONS_CHECKS
were converted toANVIL_DEBUG_SAFETY
as a contribution against #139What is the current behaviour?
There are no uniqueness constraints on task drivers.
What is the new behaviour?
If the
[WorldUniqueTaskDriver]
attribute is present,AbstractTaskDriverSystem
will throw an exception when the second instance is registered.What issues does this resolve?
What PRs does this depend on?
Does this introduce a breaking change?
If you're relying on
ENABLE_UNITY_COLLECTIONS_CHECKS
for the affected task driver safety make sureANVIL_DEBUG_SAFETY
is enabled.