Skip to content

Move Command-related logic from event constructor to new EventListener  #14

@gwmensink

Description

@gwmensink

This is about the constructor of the following class:

SurvivalKit.Events.Network.RPCEvent

When the constructor is called, there is logic handling commands (see image below).
Wouldn't it be more nicer if we moved this logic to a new EventListener?
If we register this handler in the constructor of the EventAggregator we should always be able to handle commands before plugins are able to touch them.

The logic is marked in red on the following image:
rpcevent

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions