Posted By: Martek
overwrite struct - 08/03/09 11:17
Hello everyone,
is it possible to overwrite a struct? I want to add some more varialbes to the panel struct. Or can I work around it. I hope that I needn't create an extra array and save these variables into it...
Mfg, Martek
Posted By: Claus_N
Re: overwrite struct - 08/03/09 12:50
Hi,
No you can't do so as far as I know, however I suppose you could do something like this:
typedef struct PanelStruct
{
PANEL* ThePanel;
var myVar1;
var myVar2;
} PanelStruct;
Posted By: Martek
Re: overwrite struct - 08/03/09 14:46
I think I must do it this way... It is even better then an extra array
Posted By: MrGuest
Re: overwrite struct - 08/04/09 09:26
you could just add some variables in the panel struct?
atypes.h, line 517
Posted By: Claus_N
Re: overwrite struct - 08/04/09 11:42
atypes.h is part of the engine SDK - so I doubt that it would work, but please tell me if it does
Posted By: Martek
Re: overwrite struct - 08/04/09 13:44
I am afraid of changing the 3DGS include files. This variables should only be used in one project. But I found another way. At the moment I only need two variables and I save them into the panel.skill_x and panel.skill_y variables and this works fine