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

EventBus usage is not clear #84

Closed
Shadowblitz16 opened this issue Dec 2, 2024 · 1 comment
Closed

EventBus usage is not clear #84

Shadowblitz16 opened this issue Dec 2, 2024 · 1 comment

Comments

@Shadowblitz16
Copy link

The event bus documentation is not very clear.
Does it support multipule callback?
Does it support multipule callback per class?
What is e?
What does send take?

            var e = Load;
            EventBus.Send(ref e); // error
        });

        World.Query(windowStateDesctiption, (Entity entity, ref WindowInfo info, ref WindowState state) =>
        {
            
        });
    }

    [Event(order: 0)]
    private void Load(ref LoadEvent load)
    {
        
    }
    
    public readonly record struct LoadEvent   (float Delta);
@genaray
Copy link
Owner

genaray commented Mar 27, 2025

Multiple callbacks yes, also per class. I updated the docs on the official doc website.

@genaray genaray closed this as completed Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants