[ARCH] Introduce ZoneManager with OnZoneChanged event #41
No reviewers
Labels
No labels
architecture
bug
duplicate
enhancement
help wanted
invalid
performance
quality
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lavarius/ProjectOverlay!41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/16-zone-manager"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #16
What changed
Replaces the implicit
SendMessage("SetZone", zone)scatter pattern with a single, explicit C# event in a newZoneManagerstatic class.ZoneManager.cs(new)ZoneInfluenced.csAdded
OnEnable/OnDisableto subscribe/unsubscribe every subclass automatically:MovementManagerandAnimationControllerinherit this for free — no changes needed in those files.CharacterZoneChanger.csWhy
SendMessage