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

Open
Shadowblitz16 opened this issue Dec 2, 2024 · 0 comments
Open

EventBus usage is not clear #84

Shadowblitz16 opened this issue Dec 2, 2024 · 0 comments

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);
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

1 participant