04-05-2014, 11:31 PM
(04-05-2014, 12:41 AM)xoft Wrote: Why not? All you need is a cWorld pointer, then you can manipulate any sign within the loaded chunks, using the cWorld::DoWithBlockEntityAt() function (if you need, you can write a specific DoWithSignEntityAt() function; although it'd be nice to somehow templatize this piece of code to avoid copy-pasting it to new functions).
Well, I'm trying to fix up the MetaRotate and MetaMirror Functions for cBlockSignHandler and I don't think I can get any cWorld pointers into that function without rewriting the declarations and calls of all the MetaRotate and MetaMirror Functions. These functions are virtual member functions of cBlockHandler and only take a particular metadata as a parameter.