Skip to content

[Feature] Entity -> Entity (Scene-Based) Event System #13

Description

@Tweety-Lab

Note

This issue relates heavily to #12.

Topic of Discussion

When putting a scene together, there will be many times an Entity may want to cause another Entity to run specific logic.

For example, a Trigger Entity causing a PointLight Entity to flicker when entering it. We only need this to occur in a singular scene so manually calling flicker logic from Trigger.OnEnter() has many downsides similar to the ones discussed in #12.

Proposed Solution

This proposal suggests using the event system proposed in #12 to implement Entity events with connections that live in the Scene definition. The scene holds event connection definitions that it connects at runtime.

Scene
├── Entities
└── Event Connections
    └── Event #1
        ├── Source = Trigger01
        ├── Event = OnTouch
        ├── Target = Light01
        └── Action = Flicker

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions