cHangingEntity questions - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Development (https://forum.cuberite.org/forum-13.html) +--- Thread: cHangingEntity questions (/thread-1626.html) |
cHangingEntity questions - xoft - 10-22-2014 This is a set of questions mostly for @Howaner, since he's the author of the relevant code, but perhaps someone else can bring something useful to the discussion as well. What is the cHangingEntity class? Right now it looks it is useless - it has a single descendant, cItemFrame, so what's keeping us from skipping the unused man-in-the-middle? Is there another descendant planned? RE: cHangingEntity questions - Howaner - 10-22-2014 The cHangingEntity should be a super-class for ItemFrame and Painting. I added the cHangingEntity because I planned to use this as a parameter for new hooks. (HangingBreak, HangingInteract, HangingPlace, ...) But now I think this isn't needed because plugins can use the right click entity / entity damage hook. You can remove the class if you want. RE: cHangingEntity questions - xoft - 10-23-2014 So is the cPainting class supposed to be a descendant? If yes, it would make some sense to keep the intermediate class for the code they have in common. If there's no such code, then let's get rid of it. |