Skip to content
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

Fix some event names on wiki #5254

Merged
merged 2 commits into from
Jun 8, 2017
Merged

Fix some event names on wiki #5254

merged 2 commits into from
Jun 8, 2017

Conversation

PabstMirror
Copy link
Contributor

No description provided.

`AddCargoByClass` | Adds a cargo item to the vehicle. | `[_itemClass, _vehicle, _amount, _showHint]` | Local
`ace_addCargo` | [_item (CLASSNAME or OBJECT), _vehicle, _cargoCount] | Target | Scripted way to add cargo to vehicle
`ace_loadCargo` | `[_object, _vehicle, _showHint]` | Target | Load object into vehicle.
`ace_unloadCargo` | `[_object, _vehicle]` | Target | Unload object from vehicle.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd really say get rid of those "Callable" events, we should promote public functions instead (I wrote this back when I wasn't totally sure what I was doing :P).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with this, I think events should only be publicly listenable and public functions should take care of calling things where appropriate

@PabstMirror
Copy link
Contributor Author

Switched callable events to functions.
Also note that directly calling the functions won't trigger the listenable events (like ace_cargoLoaded)

@PabstMirror PabstMirror merged commit 847832c into master Jun 8, 2017
@PabstMirror PabstMirror deleted the updateWikiEvents branch June 8, 2017 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants