OpenTTDLib
[ class tree: OpenTTDLib ] [ index: OpenTTDLib ] [ all elements ]
Prev Next

Return Value Structures

what should i expect and how do i access the data?

The Default since version .3.1

Only applicable to game servers as of r13713.

As of OpenTTD r13713 no client details are available in the UDP packets (bumping NETWORK_COMPANY_INFO_VERSION to 5). OpenTTDLib has support for this as of .3.1 and for compatability reasons still will create the same structure as before, you will however only find empty arrays instead of client lists. Any games up to this version, including OpenTTD 0.6.2RC1 will provide client information, and OpenTTDLib will make these details available to you as it has before.


The Default since version .3

Since version 0.3 OpenTTDLib handles most data as objects, and not as arrays. However, it is possible to tell OpenTTDLib to return pure arrays, rather than objects or arrays of objects. Please refer to the Settings tutorial, specifically the section on OpenTTDLib::OPTION_RETURNTYPE.

Please follow the subsections for specific details...


Prev Up Next
Settings User Guide to OpenTTDLib getInfo()

Documentation generated on Wed, 29 Apr 2009 23:33:49 +0200 by phpDocumentor 1.4.2