AGSC (File Format): Difference between revisions
Jump to navigation
Jump to search
→ObjectID
imported>Antidote |
imported>Jackoalan |
||
Line 103: | Line 103: | ||
==== ObjectID ==== | ==== ObjectID ==== | ||
After this are four tables of objects. Each object is identified with a 16-bit '''ObjectID''' | After this are four tables of objects. Each object is identified with a 16-bit '''ObjectID'''. | ||
Factor5 designed ObjectIDs to used in a polymorphic manner. The top 2 bits of the ID are used | |||
to differentiate between SoundMacros, Keymaps, and Layers. If the ID passes a mask of 0x4000, | |||
the object is a ''Keymap''. If the ID passes a mask of 0x8000, the object is a ''Layer''. | |||
Otherwise, the object is assumed to be a ''SoundMacro''. ''Tables'' don't require this type of | |||
polymorphism due to the context in which they are accessed. | |||
''' | |||
==== SoundMacros ==== | ==== SoundMacros ==== |