QtGameEngine icon indicating copy to clipboard operation
QtGameEngine copied to clipboard

Please add "PathingMap" as a parameter for qRegisterMetaType

Open abhishekpapanna opened this issue 4 years ago • 0 comments

Hey,

The spider entity will not move even when the player is in the field of view. The issue is PathingMap is not registering just by using qRegisterMetaType<PathingMap>(); //(Line 45 in Game.cpp)

qRegisterMetaType<MyStruct>(); requires that you first declare the struct using Q_DECLARE_METATYPE()

Using this instead of the above solves my issue. int qRegisterMetaType(const char * typeName) i.e. qRegisterMetaType<PathingMap>("PathingMap"); //I was able to find this using the Debug messages.

Love your work, Thank you, Abhishek

abhishekpapanna avatar Jun 25 '20 16:06 abhishekpapanna