Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Rui 'Trovatore' Pires on Sat 17/09/2005 15:01:00

Title: REQUEST: Documentation on structs (IMPLEMENTED)
Post by: Rui 'Trovatore' Pires on Sat 17/09/2005 15:01:00
The more I look at other people's code, the more I wander about how they do it and why they do it. This has made me curious enough to want to learn about arrays, which are not documented. Now I'm pestering the kind folks at #AGSTech with structs, which - as explained to me - aren't really an official thingy, but which nevertheless have been proved to be real handy.

The AGS documentation is great, in my opinion - well writ, easy to understand, with good examples, sets you off in the right direction if you want to learn. So I'd like to see documentation about structs and arrays.

Pretty please?
Title: Re: REQUEST: Documentation on structs
Post by: Pumaman on Sat 17/09/2005 16:14:13
The main reason for structs being undocumented was that strings couldn't be put inside them. However, now that 2.71 beta 6 allows Strings in structs, it probably is about time to make them official.

As for arrays, they were unofficial because of possible array bounds errors, however since that is now checked by the script engine, again they can probably become an official feature.

Good points, I'll see about documenting them for a future version.

Edit by strazer

AGS v2.71 RC 1:
* Arrays and structs are now officially supported, and are documented in the manual.

(Manual -> Scripting -> Script language keywords -> Arrays / struct)