[Question] StrategyGameClasses.h - How to make something similar?
I'm trying to replicate the way Epic does when getting linking headers to cpp.
In the StrategyGame sample, some cpp will only include the main header class only which is StrategyGame.h and is still able to get data from other classes
In the StrategyGame.h, I notice that there is a #include "StrategyGameClasses.h"which i assume that it contains/store all the headers in StrategyGame.h
However, i cannot seem to find the StrategyGameClasses.h in the solution explorer. Is it some kind of C++ technique or a header file that is created when the game starts?
asked Mar 11 '14 at 02:33 AM in C++ Programming
ue4-archive ♦♦ STAFF
I tried it again on a new project like you suggested and it worked now. Could be a typo that made the error on my other project.
Thanks for helping me out :D
is auto generated by UE4 and should never be manually edited by you :)
One time when I opened MyProjectClasses.h it actually said what I just wrote above in the header comment :)
"some cpp will only include the main header class only which is StrategyGame.h"
In my project, every single .cpp includes only the main project .h as you are saying above, apparently there is some change in motion surrounding this,
but that is what I include in every .cpp
Follow this question
Once you sign in you will be able to subscribe for any updates here