-
Notifications
You must be signed in to change notification settings - Fork 757
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
Changes from all commits
efd9271
67f29f0
5ce5ade
2c33086
6818c4c
078577b
016c0e8
0d8271c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,5 +25,5 @@ if !(_name in GVAR(syncedEvents)) exitWith { | |
| private _data = GVAR(syncedEvents) get _name; | ||
| _data params ["", "", "", "_eventId"]; | ||
|
|
||
| [_eventId] call CBA_fnc_removeEventHandler; | ||
| [_name, _eventId] call CBA_fnc_removeEventHandler; | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this function has never worked, we could also just remove it
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Deprecate, remove in next major version?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess it's not doing much harm |
||
| GVAR(syncedEvents) deleteAt _name; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -210,7 +210,7 @@ This is not the case for inline functions or functions not contained in their ow | |
|
|
||
| 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`. | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. removed logic (just object) |
||
| 3. If an argument can have multiple types, concatenate types using `or`. Example: `<STRING or CODE>`. | ||
| 4. Arrays with the same value types are written in the format `<ARRAY of TYPEs>`. The nested type has a small `s` appended at the end. | ||
| 5. If an argument is optional, the default value must be written after the type in the format `(default: value)`. | ||
|
|
||
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