For the event system, it is a good way to decouple class references. The plugin's design is more similar to a publish-subscribe pattern design.
Question 1: So when should I use it?
I think the event system should be used for interactions between modules, not within the same module. For this, I will use the content of several systems I am developing as examples. Damage system. For the same reason as the attribute system, internally we should not use the event system, but rather a submodule. However, for the interaction between the damage system and the attribute system, we can use the event system to handle it. For example, when I hit an enemy and then deal damage, we can send a notification to the attribute system telling it that I have dealt damage and need to perform health deduction, or stamina deduction from blocking (or other), and so on. Event System changelog: V3.4 changelog:
Extend the listener logic, change the Self pin to Listener, and make it a pin that can connect to any Object;
Update the plugin documentation link.
V3.3 changelog:
1. Fix the issue of duplicate multiple event nodes in the event listener..;
2. Update the event system and add a reference debug window for the event system.
Global Event System V2 (V3) video: [] [] V3.2.1
Fix event listener search issue...
V3.2.0
Add JSON tool.
Add an interface for sending messages to the server.
V3.1.0
(Not added to the Global Event System) Added an interaction system. This is a complete demonstration of the event system. It is made with C++, and I am working on some of its demos.
Fix for copy-pasting Event Listener event nodes.
When the notification target is an Actor, if no listening event is found in the Actor, it will automatically query its components. If the event exists in a component, the event in the component will be executed. I think this may be good news for using this plugin in Blueprints.
Added C++ macro support to make it more convenient to use this system in C++.
And some other fixes...
V3.0.0
Almost complete support for defining EventTag in C++ and using it in C++ and Blueprints
Basic data types
Any struct type (including custom)
Class, Object, SoftClass, SoftObject
Map parameter (note: Key does not support being set to a custom struct, but some preset structs can be used [such as GameplayTag, Key, EventTag, Vector, etc.]. This is kept because it will not occur in most cases, unless it is provided later when needed)
Complete Blueprint EventTag definition and modification
Fixed most error reports.
V2.5
Support defining EventTag in C++ and using it in Blueprints
Support more event parameter pins
Fixed some known bugs
V2.2 Fixed packaging errors, fixed default value pins V2.1 Updated attribute system (added after marketplace review approval) ***If you only need one of the systems, you can find it here [Advanced Attribute System] [[Global Event System V2.5]() V2.0.1
Fixed a potential bug
V2.0 This system is about to enter V2. The system core has undergone a major update, and the price will increase for the first time! I have submitted update files for engine versions 5.3 and 5.4, and the new version will arrive in the coming days! Event System V2 description:
Attribute extension for custom attribute tags and event tags. Both are similar to gameplay tags and implement an event system based on event tags (used for decoupling).
Using Blueprint's event dispatcher will inevitably reference the event delegate source object class and add a Blueprint file reference. This event message system will release this reference to achieve decoupling.
Special note: The V2 version is the new EventTag system and will support engine version 5.3 and above. The old system only supports version 5.2 ***Event System ***V2 Features:
Event System: used for program decoupling
Customized EventTag (similar to GameplayTag), supports dynamic binding of event parameters
Dynamically manage EventTag parameter list, supports arbitrary modification of parameter list
Manage EventTag through data table
Event notification and event listener
Customized event listener (based on custom events, supports network replication)
Customized AttributeTag (similar to GameplayTag)
***Event System ***V2 Code Modules:
EventSystem
EventTags
EventTagsEditor
AttributeTags
AttributeTagsEditor
***Event System ***V1 Features:
for program decoupling
Custom listening event node (supports network replication)
Custom attribute labels/custom message labels
Custom message tags can create any number of parameters for notifications and listeners
Customized message monitoring and message notification interfaces can be easily connected to projects
Customize message listening events to make event monitoring more flexible
Custom attribute labels are available for data tables
Event System V1 Code Modules:
Attribute extension: Custom attribute labels/custom message labels use a combination of category + name + comment
AttributeExtensionEditor: Custom attribute editor module for custom attribute Tags
AttributeMessageEventSystem: A global message notification system derived from attribute Tag. Message monitoring and notification can be implemented through C++/Blueprint (node or event), and the parameter list can be customized.
AttributeExtensionDeveloper: Node editor customized for global message notification system
Comments
Share your thoughts and discuss with everyone