Game Development Community

SimComponent

by Gordon Walton · in Torque Game Engine · 05/02/2008 (8:46 am) · 6 replies

I''m in the process of updating my projects from TGEA 1.0.3 to TGEA 1.7.0 but i've come across a stumbling block....

What on earth are SimComponents and why are ConsoleObjects inheriting from this class? Its mightly confusing to look at and i can't figure out what they are for. I might have to remove this inheritance and the code in engine/soure/component.

Has anyone any ideas?

#1
05/02/2008 (9:41 am)
Yikes! I'm not exactly sure what that class does either but pretty much every object that you're going to use in your game inherits from it so I would be really careful about doing anything with it. If it was me, I would leave it alone and try to figure out why it's there before changing anything.
#2
05/02/2008 (11:15 am)
Do not take it out, you'll regret it :)

SimComponents are a fundamental architectural change to how a variety of things are handled within the engine, and are critical to both current engine operations, and future development.
#3
05/06/2008 (8:10 am)
Can we infer anything from the name Stephen? Right now SimComponent gets inherited from, but it looks like it's being "groomed" to become a component in the future?
#4
05/06/2008 (9:16 am)
It's setting up the architecture for Components Mark, correct (as well as other underlying architectural changes). It's not however providing the capability to use components yet, but sometimes when code iterations migrate from R&D over to production, they include "progressive" elements such as these.
#5
05/06/2008 (2:01 pm)
I understand. It looks like its heading towards a good direction.
#6
05/07/2008 (5:56 am)
Thank you for the responses. The reason why it looked like a problem is because i use an extremely modified version of TGEA and i'm in the middle of applying my code to TGEA 1.7 but i think it should be fine now. I've gone into the coding surrounding SimComponent and the associated files. As far as i can tell, SimComponent provides a method of executing consoleMethods for a given consoleObject. Is this correct?

Anyhow my code seems to be fine with it all so its back to testing.