-
Notifications
You must be signed in to change notification settings - Fork 74
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
Component Hook. #97
Component Hook. #97
Conversation
Thanks a lot! That looks promising ^^ Could you please update the branch to the latest master? If i saw that correctly its still using a slightly older version. And could you provide a small code sample aswell? :D |
Sorry forgot to merge to latest, this is my second time using Pull Request operation. please advise. :) |
An example of use is as follows: var componentHook = new ComponentHookRecord< Transform >{
OnAdd = ( in Entity entity, ref Transform component ) =>
{
},
OnSet = ( in Entity entity, ref Transform component ) =>
{
},
OnRemove = ( in Entity entity, ref Transform component ) =>
{
}
};
world.RegisterComponentHook(componentHook); |
Thanks, looks great! I'll gonna test it later and then merge it :) (Once I'm home). |
Ok, I'll submit it after I finish the documentation. |
Closed in favor for #98 |
Add component-related event handling.
(Code may need tidying up)