Skip to content

Added 'event_name' to event's kwargs #76

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

Merged
merged 1 commit into from
Oct 28, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ def _pre_game_event(args):
# TODO: use data or some other means to get the offset
kwargs = make_object(
KeyValues, get_object_pointer(game_event).get_pointer(8)).as_dict()
kwargs['event_name'] = event_name

# Loop through all callbacks in the pre-event's list
for callback in pre_event_manager[event_name]:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def fire_game_event(self, game_event):
# TODO: use data or some other means to get the offset
kwargs = make_object(
KeyValues, get_object_pointer(game_event).get_pointer(8)).as_dict()
kwargs['event_name'] = game_event.get_name()

# Loop through each callback in the event's list
for callback in self:
Expand Down