-
-
Notifications
You must be signed in to change notification settings - Fork 109
Tracking changes
Nico Borgsmüller edited this page Jan 17, 2021
·
4 revisions
To be able to synchronize the game, all actions a player performs need to be tracked.
Two major types of listeners are used for that: The Extensions provided by the Cities API and our own Injections into the game code.
The extension implementations are placed in the src/Extensions folder. An overview of available extensions can be found here: Extensions. Every extension provides certain functions that are called by the game when some properties change. E.g. OnUnlockArea for the AreaExtension that is called when an area is unlocked.
For most of the features we need to synchronize, no extension exists. For this reason we patch the Cities code with the Harmony library.