Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 03/06/26 07:18
zorro with ccxt?
by opm. 03/03/26 03:17
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 5,237 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Is it possible to add Struct/User defined Type? #104379
12/30/06 02:10
12/30/06 02:10
Joined: Jul 2005
Posts: 34
Hong Kong
U
ultranet Offline OP
Newbie
ultranet  Offline OP
Newbie
U

Joined: Jul 2005
Posts: 34
Hong Kong
A few suggestions for C-script:
1.Add Struct/User defined Type to C-Script;
2.Function can have more parameters,at least 15 parameters;
3.Real 2-Dimensional array. It's not convenient to use 1D array to pretend 2D array.
4.Add more skills by the user whenever needed, just like instance variables.
It's not convenient to create a dummy entity to use its 100 skills and 8 flags.

Many Thanks

Re: Is it possible to add Struct/User defined Type? [Re: ultranet] #104380
12/30/06 07:50
12/30/06 07:50
Joined: Oct 2002
Posts: 4,753
Munich, Bavaria, South of Germ...
TripleX Offline
Expert
TripleX  Offline
Expert

Joined: Oct 2002
Posts: 4,753
Munich, Bavaria, South of Germ...
Wait for LiteC.. All things you mentioned will be possible with this new programming language.

Re: Is it possible to add Struct/User defined Type [Re: TripleX] #104381
01/02/07 09:44
01/02/07 09:44
Joined: Jul 2006
Posts: 503
Australia
A
adoado Offline

User
adoado  Offline

User
A

Joined: Jul 2006
Posts: 503
Australia
When will liteC be out just out of curiosity. Its good these features are coming because I agree with ultranet, it would be good to have them. Thanks!


Visit our development blog: http://yellloh.com
Re: Is it possible to add Struct/User defined Type [Re: adoado] #104382
01/02/07 11:09
01/02/07 11:09
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
its easy, e.g you want a special driver struct for a racing game, you could do it with this:

Code:

typedef struct DRIVER {
char name; //driver name
VECTOR position;
VECTOR angle
double mass;
int rank;
} DRIVER;



I dont know when its out, because its currently under development and beta testing.. so I guess "when its ready"

Though, send JCL an email with your qualifications to become a betatester - by this you are allowed to use the current liteC compiler.

Last edited by HeelX; 01/02/07 11:26.

Moderated by  aztec, Spirit 

Gamestudio download | 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