| 11 | // Internal dependancies: Logger, Desktop, LoadingScreen |
| 12 | |
| 13 | public class API { |
| 14 | |
| 15 | /*/ |
| 16 | NOTE: |
| 17 | This is our WIP API. Everything here (and in this entire game) is subject to |
| 18 | change without warning. |
| 19 | |
| 20 | Please check that your addon works with each new game release. |
| 21 | |
| 22 | !!ATTENTION!! |
| 23 | We are not responsible for misuse of this API, or any Modder-implimented code. |
| 24 | Modders take full responsibility for their own code, as well as ANY and ALL |
| 25 | issues and damage that they may potentially cause. |
| 26 | |
| 27 | We kindly ask Modders to be respectful, and not create and/or distribute potentially |
| 28 | or perpously harmful code. Doing so not only hurts YOUR reputation, but also this |
| 29 | community as a whole. |
| 30 | |
| 31 | Thank you~ |
| 32 | |
| 33 | Allison Smith - Head Developer of ExitCode |
| 34 | /*/ |
| 35 | |
| 36 | |
| 37 | /** |
| 38 | * These are Runnable's to be executed after the login page loads. |
| 39 | */ |
| 40 | private static Map<String, Runnable> login_tasks = new TreeMap<>(); |
| 41 | |
| 42 | /** |
| 43 | * These are Runnable's to be executed after the Desktop loads. |
| 44 | * (Desktop mods go here) |
| 45 | */ |
| 46 | private static Map<String, Runnable> desktop_tasks = new TreeMap<>(); |
| 47 | |
| 48 | /** |
| 49 | * These are secondary Runnable's to be executed after the Desktop loads. |
| 50 | * (Apps and other Addons go here, to make sure they load correctly after desktop mods) |
| 51 | */ |
| 52 | private static Map<String, Runnable> desktop_tasks2 = new TreeMap<>(); |
| 53 | |
| 54 | /** |
| 55 | * These are Runnable's to be executed when the game shutsdown. |
| 56 | * (Use these to propperly kill threads and close files to avoid potential data loss) |
| 57 | */ |
| 58 | private static Map<String, Runnable> shutdown_tasks = new TreeMap<>(); |
| 59 | |
| 60 | /** |
| 61 | * This is a public modders resource. It's intended for communication between mods. |
| 62 | * |
| 63 | * Other mods use this too. So don't clear it or anything like that. |
| 64 | */ |
| 65 | public static Map<String, ?> resource_map = new TreeMap<>(); |
| 66 | |
| 67 | /** |
| 68 | * This is a public modders resource. It's intended for communication between mods. |
| 69 | * |
| 70 | * Other mods use this too. So don't clear it or anything like that. |
nothing calls this directly
no outgoing calls
no test coverage detected