Hi there, not sure if this is a UE4, C++ or logic question… but here goes.
Is it possible to have two or more TMAPs where the values are objects (all derived from the same base class) and pass them into one function?
// THIS IS A BASE CLASS WHICH WILL BE USED AS A TMAP VALUE
class CPPTEST_API UTileUpdateObject : public UObject {
// THIS IS A DERIVED CLASS WHICH HAS A COUPLE OF OTHER VALUES
class MapSculptorUpdateObject : public UTileUpdateObject {
So if my FindNearest function takes (TMap<int32, UTileUpdateObject *> &tiles)
Is there any way I can pass a TMAP<int32, MapSculptorUpdateObject *> to it, as I’m only interested in the keys and base properties?
Sorry for rambling!