Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (SBGuy), 652 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
overwrite struct #282714
08/03/09 11:17
08/03/09 11:17
Joined: Jul 2007
Posts: 288
Germany, NRW
Martek Offline OP
Member
Martek  Offline OP
Member

Joined: Jul 2007
Posts: 288
Germany, NRW
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


3D Gamestudio A7 Extra
Re: overwrite struct [Re: Martek] #282735
08/03/09 12:50
08/03/09 12:50
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
Hi,

No you can't do so as far as I know, however I suppose you could do something like this:

Code:
typedef struct PanelStruct
{
	PANEL* ThePanel;
	var myVar1;
	var myVar2;
} PanelStruct;



Re: overwrite struct [Re: Claus_N] #282750
08/03/09 14:46
08/03/09 14:46
Joined: Jul 2007
Posts: 288
Germany, NRW
Martek Offline OP
Member
Martek  Offline OP
Member

Joined: Jul 2007
Posts: 288
Germany, NRW
I think I must do it this way... It is even better then an extra array smile


3D Gamestudio A7 Extra
Re: overwrite struct [Re: Martek] #282846
08/04/09 09:26
08/04/09 09:26
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
you could just add some variables in the panel struct?

atypes.h, line 517

Re: overwrite struct [Re: MrGuest] #282870
08/04/09 11:42
08/04/09 11:42
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
atypes.h is part of the engine SDK - so I doubt that it would work, but please tell me if it does smile

Re: overwrite struct [Re: Claus_N] #282885
08/04/09 13:44
08/04/09 13:44
Joined: Jul 2007
Posts: 288
Germany, NRW
Martek Offline OP
Member
Martek  Offline OP
Member

Joined: Jul 2007
Posts: 288
Germany, NRW
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 smile


3D Gamestudio A7 Extra

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1