-
Notifications
You must be signed in to change notification settings - Fork 68
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
Introduce CHDLCHookManager to retrieve DLCInfos with specific implemented hooks. #1247
Introduce CHDLCHookManager to retrieve DLCInfos with specific implemented hooks. #1247
Conversation
X2WOTCCommunityHighlander/Src/XComGame/Classes/CHDLCHookManager.uc
Outdated
Show resolved
Hide resolved
d8bd00b
to
2739f5b
Compare
I found another issue I am undoing now: There are a few calls to GetDLCInfos(true) (instead of false), to retrieve only the DLCS that are new in the current campaign. For example in XComOnlineEventMgr, it is used to trigger "OnLoadedSavedGame", but only for DLCs that were not in the current campaign's history. I will undo that change so that it uses the normal GetDLCInfos(true) again. I suppose it's not really worth optimizing these cases, since they are rarely/used only once? |
Another question: I need some guidance on documenting/commenting on these changes.
|
Personally I would go for a documentation page that documents the intent and some implementation details, explicitly stating that:
|
Added some documentation. Should I do a rebase --interactive to make the history clean again, or will this get squashed into one commit anyway? |
591368d
to
c0bc3e9
Compare
It's gonna get squashed. The only time we use more than one commit per PR is when an existing base game class is added to source. |
Also docs fail to build atm in this PR. |
X2WOTCCommunityHighlander/Src/XComGame/Classes/CHDLCHookManager.uc
Outdated
Show resolved
Hide resolved
There is one added file. So I'll do a final rebase after this is considered 'done'. |
But this is not base game source code file, it's entirely new, so it doesn't matter. |
this one from base game got added. |
Ah, I didn't notice. Then yes. |
94ae30e
to
3e603e9
Compare
added docs, rebased, and ready for review. |
3e603e9
to
f9f74c4
Compare
… yell" This reverts commit 36079b7.
…ay as 100% crit in UI
… it is dropped on unit death
…ons when it is dropped on unit death" This reverts commit 3705e59.
This reverts commit 2918da0.
…added to attacks that don't deal damage
Updates the function to cast only to UIArmory_Promotion instead of its subclasses. Also adds missing brackets to if/else statements.
Add event to override patrol behavior if pod is spotted in stealth
Update -artifact Actions to v4
…ros/X2WOTCCommunityHighlander into fixes/DLCInfo_hook_manager # Conflicts: # X2WOTCCommunityHighlander/X2WOTCCommunityHighlander.x2proj
Implemented in #1385 |
fixes #212
It's still missing proper docs and comments. but this is the idea. I've split up the commits for easier reviewing.