Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Interaction Entity System #26
Interaction system parses click on clickablecomponents within range of the attacker into attackhand, attackby, and useentity. It makes it so if you want something to have attackhand, attackby, or item use functionality you only need to add the interface and define the function.
Replaces the need for interactable component on anything that can be interacted with, and replaces the need to register attackhand, attackby, or item use on the interactable component. This would likely have been an annoyance at least and a point of failure for new coders at worst.
WIP: Primarily just need a way to hook into the clickable component so that it will know to fire the interaction system. I've tacked on some hacky add/remove event onto components that use the interactions but that is obviously far from what I wanted to do.
I also think assigning it to the delegate is somewhat silly and would rather have the interaction system get directly called but since the clickable component is in the engine I can't do that.
Also requires clicktype PR on the engine repo