Skip to content

Added event hook system and basic events - #11

Open
Santa3ta wants to merge 1 commit into
monksilly:devfrom
Santa3ta:EventsApi
Open

Added event hook system and basic events#11
Santa3ta wants to merge 1 commit into
monksilly:devfrom
Santa3ta:EventsApi

Conversation

@Santa3ta

Copy link
Copy Markdown

Added an event hooking system with predefined events, useful for people to create mods without having to look at the actual game code or create their own harmony patches.

Will add more events to hook in future if approved

One concern I have with my approach is this will significantly increase the number of patches in the Core/Patches folder. Not sure if you would prefer me to create a subfolder of Patches that the hooks use

May modify the hook system to be more granular in future e.g something like
EventService.Subscribe(HookId.PlayerTookDamage, modes: {"Campaign","EndlessSuperstructure"}, modifiers: {"default", "Ironknuckle"})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant