-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a DLCInfo loadorder system #511
Comments
This is effectively an MCO, which CHL is supposed to avoid. Is this something we are willing to break in this case? |
not really, its implemented by XComEngine
|
This is still a class-level replacement, effectively an MCO, regadless of how it's implemented. If there is another mod out there that MCOs |
Native to native function calls cannot be intercepted by script. This would work for all non-native hooks, but we can change the order there without creating a new OnlineEventMgr already. Maybe investigate whether the OnlineEventManager maintains an array of X2DownloadableContentInfo objects you can sort, and whether we have a good place to do it (after bootstrapping the OnlineEventMgr, before creating templates)? |
Lets take this to the discord guys. |
Relevant note: I've tried to MCO |
Why is this still open? |
By adding
we create directed acyclic graph (dag) of mod dependencies.
Implement in a mod it would look like
With subclassing
XComOnlineEventMgr
and interceptingGetDLCInfos
it is possible to reorder the dag of DLCInfo classes using topological sorting.This results effectively in a order control for dlcinfo hooks like
OnPostTemplatesCreated
.The text was updated successfully, but these errors were encountered: