Visual Studio doesn't understand func? [Need class name]

You probably need to include engine.h and/or world.h in your cpp.