Dreikblack Posted June 10, 2023 Posted June 10, 2023 I know how to do it in .c and .cpp classes with forward declaration but it does not work for component .hpp classes. I have one component having a second component member and i need a first component member for a second component. Quote Check out Slipgate Tactics demo, which is made with Ultra Engine: https://www.leadwerks.com/community/topic/61480-slipgate-tactics-demo/
Solution Josh Posted June 10, 2023 Solution Posted June 10, 2023 A forward declaration should work, as long as you are creating the object as a pointer or shared pointer: class MyThing; Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Dreikblack Posted June 10, 2023 Author Posted June 10, 2023 For some reason it was not working in one of components but in another one it worked Quote Check out Slipgate Tactics demo, which is made with Ultra Engine: https://www.leadwerks.com/community/topic/61480-slipgate-tactics-demo/
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.