NavYoink
A small library for keeping track of nav graph nodes to allow dynamic removal.NavYoink
Description
NavYoink is a library mod. It won't do much on its own, but it may be required for some other mods.
For developers: NavYoink makes objects remember which NodeGraph nodes they're occupying, through addition of a NodeOccupationInfo component; and adds some extension methods to DirectorCore (using static ThinkInvisible.NavYoink.Extensions;) to allow erasing or migrating NodeGraph occupations for a specific object.
Changelog
The 5 latest updates are listed below. For a full changelog, see: https://github.com/ThinkInvis/RoR2-NavYoink/blob/master/changelog.md
1.0.0
- Initial release. Moved from TILER2: component
NodeOccupationInfo; and extension methodsRemoveOccupiedNode,RemoveAllOccupiedNodes, andUpdateOccupiedNodesReference.- Tweaked
OccupyNearbyNodes_OnSceneDirectorPrePopulateSceneServerhook to no longer bypass the vanilla method. Nodes covered by multiple OccupyNearbyNodes components are now assigned to only whichever of the latter is first in default enumeration order, instead of to all of them.
- Tweaked
