Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add "PathingMap" as a parameter for qRegisterMetaType #38

Open
abhishekpapanna opened this issue Jun 25, 2020 · 0 comments
Open

Comments

@abhishekpapanna
Copy link

abhishekpapanna commented Jun 25, 2020

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(); 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant