Skip to content

Event handler - #111

Open
Frontrider wants to merge 5 commits into
danielmartin0:mainfrom
Frontrider:event-handler
Open

Event handler#111
Frontrider wants to merge 5 commits into
danielmartin0:mainfrom
Frontrider:event-handler

Conversation

@Frontrider

Copy link
Copy Markdown
Contributor

Description

modified version of the event handler found in the base mod with added:

  • event filtering
  • composite events to group things that are commonly used together
  • an api that can be used to register other composite events. (Thermpod will test it for a "modules changed" event, made out of 4 other events)

None of the existing control code has been altered to use this.

Checklist

  • Changes have been tested
  • Changes do not break backwards compatibility
  • changelog.txt has been updated
  • README.md has been updated (documentation section and/or Contributors list)

Testing Notes

Integrated into powered machine, orbital catapult and cryo container in dev, and experienced no anomalies.
Orbital catapult migrated from the vanilla event handler.

https://mods.factorio.com/mod/orbital-cannon
https://mods.factorio.com/mod/powered-machine
https://mods.factorio.com/mod/cryo-container

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.

2 participants