Game Development Reference
In-Depth Information
It is quite hard to get the schema right the very first time as you progress through
the development of the game, and when adding those last minute features, one may
discover that either new classes are needed or new properties are needed for an
existing class or that even some classes or properties are defunct and are no
longer needed.
Whenever such a need arises, any schema update should be followed with a code
generation and then the game code may be able to access and use the new classes
and properties.
The following table enumerates the various data types available for the properties
within a class:
Type name
Length (bytes)
AS3 Type
Notes
chars
1 * count
String
Converts to UTF
bytes. The count
specified in the
XML schema file
must be large
enough to hold the
encoded bytes.
byte
1 * count
int
Only one byte times
count is transferred
over the network.
Array (count > 1)
short
2 * count
int
Only two bytes
times count is
transferred over the
network.
Array (count > 1)
Search WWH ::




Custom Search