Re: How should i properly implement multiple Interfaces in one entity component?

#2
This has already been stated in the CRYENGINE Discord but it makes sense to post it here to. Here is a Naive implementation up/cross casting by storing offsets using an intermediary helper class.

https://gist.github.com/Cry-Flare/50280 ... 625bcb4eb5

You can also use an is_convertible<> argument in the StoreBase method to prevent arbitrary interfaces being defined that are not actually inherited by the derived class.
Uniflare
CRYENGINE Technical Community Manager
Here to help the community and social channels grow and thrive.

My personal belongings;
Beginner Guides | My GitHub | Splash Plugin

Who is online

Users browsing this forum: No registered users and 1 guest