Difference between revisions of "Catalogs"
(fixing starcraft II category link) |
m (→Type: typos and (I think) fixed the links to sections on thr Weapons page.) |
||
Line 4: | Line 4: | ||
==Type== | ==Type== | ||
− | Each catalog has a set of types | + | Each catalog has a set of types its entries can have, and each entry must have one type (for example [[Weapons]] can be [[Weapon#Generic|Generic]], [[Weapon#Legacy|Legacy]] or [[Weapon#Strafe|Strafe]]). Type defines how the entry is used, and what fields it has. |
==Parent== | ==Parent== |
Revision as of 20:43, 8 May 2011
Catalogs are containers for objects created in data editor. Each object created by the data editor belongs to one of the catalogs, which are distinguished by their function. These objects, or catalog entries, have a type, a parent and fields.
Type
Each catalog has a set of types its entries can have, and each entry must have one type (for example Weapons can be Generic, Legacy or Strafe). Type defines how the entry is used, and what fields it has.
Parent
Each entry can have a parent entry. The entry then inherits it's parent's field values for all the fields it doesn't have specified itself. This helps to save space in map files, as most of the fields will remain unchanged in many cases (for example units have ~100 of fields, of which ~15 are changed. The remaining 85 don't need to be specified, they are inherited from the parent, which is generic unit)
Fields
Depending on type and catalog, each entry has several fields that can be set. Fields are displayed in different colors, depending on where was their values set (gray are inherited from core entries, blue are inherited from Liberty entries, light green are inherited from other entries of current map, dark green are defined by this entry). Most of the fields can be read and changed with triggers.