Eng:Scratch File Format (1.4)/Objects


 * ''This is part of a technical description of the file format.

Entries in an Object Table are known as Objects. There are two kinds of object:
 * Fixed-format Objects
 * User-class Objects

In Scratch, pretty much everything the stage, a sprite, a list, a block, a variable watcher  is an Object. An Object has a number of attributes, in the same way that each sprite can have its own variables. Most objects have a "name" attribute. For example, the Stage's attributes include a list of sprites on the stage, a dictionary of global variables, list of background, and the currently selected background.

See Object-Oriented Programming for further explanation of objects.

Structure
All objects (excluding inline values) have the following structure:


 * : one byte describing the type of object.
 * ...a couple of extra bytes if it's a User-class Object, describing the version and how many fields the object has...


 * : a fixed number of fields (Inline Values and Object References).