| Line 55: |
Line 55: |
| | == Full access == | | == Full access == |
| | By default, certain namespaces and types are off-limits to mods for security reasons. If you want to make a mod that writes to files or accesses the internet, you need to put a public static bool called GiveMeFreedom in your ModMeta implementation. Note that this only works for dll-based mods, which can't be uploaded to the Steam Workshop, and the user will be warned. | | By default, certain namespaces and types are off-limits to mods for security reasons. If you want to make a mod that writes to files or accesses the internet, you need to put a public static bool called GiveMeFreedom in your ModMeta implementation. Note that this only works for dll-based mods, which can't be uploaded to the Steam Workshop, and the user will be warned. |
| | + | |
| | + | = Events = |
| | + | As of Alpha 11.6.5. |
| | + | |
| | + | {|class="wikitable" |
| | + | |GameSettings.IsDoneLoadingGame |
| | + | |Raised when the a new game has finished loading. Beware that this can be raised before the simulation is done. |
| | + | |- |
| | + | |GameSettings.OnQuit |
| | + | |When the player quits an active game. |
| | + | |- |
| | + | |MarketSimulation.OnProductReleased |
| | + | |When a product is released, but does not count Mock products, which are products that are only available to support during beta for the player. |
| | + | |- |
| | + | |MarketSimulation.OnCompanyFounded |
| | + | |When a new company is founded, not including the player's company. |
| | + | |- |
| | + | |MarketSimulation.OnTechResearched |
| | + | |When new a new tech level is researched, not including the initial tech levels. |
| | + | |- |
| | + | |MarketSimulation.OnFrameworkReleased |
| | + | |When a framework is released. |
| | + | |- |
| | + | |TimeOfDay.OnHourPassed |
| | + | |WHen an hour has passed, after everything has updated (server refresh, etc.). |
| | + | |- |
| | + | |TimeOfDay.OnDayPassed |
| | + | |When a day has passed, after everything has updated (market simulation, etc.). |
| | + | |- |
| | + | |TimeOfDay.OnMonthPassed |
| | + | |When a month has passed, after everything has updated (bills, etc.). |
| | + | |- |
| | + | |} |
| | | | |
| | = Entry points = | | = Entry points = |