ObjectTypes Question
by Robert Blanchet Jr. · in Torque Game Engine · 02/16/2003 (12:38 pm) · 3 replies
I was going through adding some object types to the engine specific for my game's needs and I noticed today that there are two objectType.h files. One is located in console/ and the other in game/
I'm wondering why there is a need for two objectType.h header files that, for the most part, define all the object types exactly the same, except for a few missing ones located in the console/ version?
I'm asking because I am wondering if there will be any adverse effects if I just remove the one located in game/ and just add the missing parts from game/ version to the console/ version.
I'm wondering why there is a need for two objectType.h header files that, for the most part, define all the object types exactly the same, except for a few missing ones located in the console/ version?
I'm asking because I am wondering if there will be any adverse effects if I just remove the one located in game/ and just add the missing parts from game/ version to the console/ version.
#2
I used the syntax that the game/ version had though because I liked that one better ;) Just a few header changes, a compile, and everything was working exactly as expected.
I would just like confirmation from one of the gg guys that this is just some kind of oversight or if it's actually necessary to have two different version of the same file.
02/16/2003 (7:58 pm)
In the build I'm working with I successfully removed the objectTypes.h in game/ and merged over that code to the objectTypes.h found in console/I used the syntax that the game/ version had though because I liked that one better ;) Just a few header changes, a compile, and everything was working exactly as expected.
I would just like confirmation from one of the gg guys that this is just some kind of oversight or if it's actually necessary to have two different version of the same file.
#3
02/18/2003 (9:35 am)
There should only be one copy of objectTypes.h... and I believe I had been in the process of moving into the games directory (which is why there are two). I'm going to go ahead and finish moving it over and remove the one in console.
Torque 3D Owner Robert Blanchet Jr.
1) There wouldn't be any kind of performance boost, either through the network engine or the graphics engine to have two different versions of the file(with one missing parts the other has)
2) They both contain the same header define.
3) They are exactly the same except for, once again, just a few minor differences, most of which is missing parts in console/ except at bit(17) where console/ defines it as a VehicleBlockerObjectType and /game defines it as a MoveableObjectType.
4) Why have two versions, given the things listed above, when it is hard to maintain both copies of the file, which it looks like the console/ version has fallen behind already.