Mobbstar / InvisibleInc-MoreMissions

A mod for "Invisible, Inc." by Klei Entertainment, adding new kinds of missions to the game.
12 stars 10 forks source link

Todo: modinit decluttering #57

Closed Hekateras closed 2 years ago

Hekateras commented 3 years ago

At the very least, simunit, simengine and ability appends should be moved into separate files before release Ideally, only keep it in modinit if it calls on modApi

Hekateras commented 2 years ago

DONE https://github.com/Mobbstar/InvisibleInc-MoreMissions/pull/93

Hekateras commented 2 years ago

Explanation: to maintain a balance between neatness and easy overview, if the same file was appended at different times in modinit (e.g. init vs. load), I've made several versions of that file in appended_functions and put includes of it where the appends in modinit originally were. Examples of this currently include mission_util_lateInit and mission_util_load. It would be possible to merge them in one file and call init/load functions from it from modinit at different times, I feel this way provides a better overview...