-
Notifications
You must be signed in to change notification settings - Fork 748
General - Various small code fixes #11144
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
Conversation
|
What is best way to handle this returns number if called early |
|
Typically BIS fncs return nil for such cases IIRC |
| _data params ["", "", "", "_eventId"]; | ||
|
|
||
| [_eventId] call CBA_fnc_removeEventHandler; | ||
| [_name, _eventId] call CBA_fnc_removeEventHandler; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this function has never worked, we could also just remove it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deprecate, remove in next major version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it's not doing much harm
I was more worried it could cause problems if people had been calling and it starts working
but I guess we'll find out
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
| To keep the syntax in the header consistent, we set some rules: | ||
| 1. Each argument must have a type that is enclosed in brackets `<TYPE>`. The type must be in UPPERCASE. | ||
| 2. Use one of the following types only: `OBJECT`, `NUMBER`, `STRING`, `BOOL`, `ARRAY`, `CONTROL`, `DISPLAY`, `CONFIG`, `CODE`, `ANY`, `LOGIC`, `SIDE`, `GROUP`, `HASHMAP`, `NAMESPACE`, `LOCATION`, `TEXT`. | ||
| 2. Use one of the following types only: `OBJECT`, `NUMBER`, `STRING`, `BOOL`, `ARRAY`, `CONTROL`, `DISPLAY`, `CONFIG`, `CODE`, `ANY`, `SIDE`, `GROUP`, `HASHMAP`, `NAMESPACE`, `LOCATION`, `STRUCTUREDTEXT`, `NIL`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed logic (just object)
TEXT -> STRUCTUREDTEXT
added nil
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we deprecate this maybe? I think most people who care are going to use their preferred AI mod's garrison function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ace_zeus_fnc_moduleGarrison uses this
as far as I know it works ok, so I would prefer to keep it
| _data params ["", "", "", "_eventId"]; | ||
|
|
||
| [_eventId] call CBA_fnc_removeEventHandler; | ||
| [_name, _eventId] call CBA_fnc_removeEventHandler; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deprecate, remove in next major version?
ref BrettMayson/HEMTT#1136