|
|
|
|
|
by Ace17
3365 days ago
|
|
What about entities that need specialized members? e.g an "isOpen" member might make sense for a "door" entity, but it hardly makes sense for a "bullet" entity. My understanding is that Quake2 "solves" this issue by making a big structure from the union of all specialized members (see: https://github.com/id-Software/Quake-2/blob/master/game/g_lo... ). Although Quake2 certainly is industry-proven, it doesn't feel right for every specialized entity behaviour function to depend on members needed by other specialized entity behaviour functions. |
|
But this is all that is really necessary. Once you start getting into components, you add a lot of complexity (even if the pitch is that it's "simple").