API-Level Hook for JunctionRestrictionsManager #1557
Elesbaan70
started this conversation in
Ideas
Replies: 1 comment 11 replies
-
I can update my patches. macsurgey has been busy lately but might come back if there is a mod breaking change. |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to give the Node Controller mods a better way of interacting with
JunctionRestrictionsManager
, so that the code can be cleaned up, revised, and enhanced without having to worry so much about breaking Node Controller.The idea is to use .NET events to provide a hook at the API level, which Node Controller can use to alter the default and configurable states of the flags, without having to rely on Harmony-based patching. I would do the work in Node Controller and provide pull requests once the new API in TMPE is released to stable.
Here's a rough sketch of what I have in mind:
and it would be used something like this:
@krzychu124 @kianzarrin @MacSergey Any thoughts on this?
Beta Was this translation helpful? Give feedback.
All reactions