Changeset 2303 for code/branches/physics/src/core
- Timestamp:
- Dec 1, 2008, 11:09:43 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/core/XMLPort.h
r2291 r2303 196 196 @param xmlelement The XMLElement (recieved through the XMLPort function) 197 197 @param mode The mode (load/save) (received through the XMLPort function) 198 @param bApplyLoaderMask If this is true, an added sub-object only gets loadedif it's class is included in the Loaders ClassTreeMask (this is usually false)199 @param bLoadBefore If this is true, the sub- cobject gets loaded (through XMLPort) BEFORE it gets added to the main class (this is usually true)198 @param bApplyLoaderMask If this is true, an added sub-object gets loaded only if it's class is included in the Loaders ClassTreeMask (this is usually false) 199 @param bLoadBefore If this is true, the sub-object gets loaded (through XMLPort) BEFORE it gets added to the main class (this is usually true) 200 200 201 201 bApplyLoaderMask is usually false for the following reason: … … 204 204 Of course, if there are "standalone" weapons in the level, they wont be loaded. 205 205 206 If bLoadBefore , an added object already has all attributes set (like it's name). This is most206 If bLoadBefore is true, an added object already has all attributes set (like it's name). This is most 207 207 likely the best option, so this is usually true. 208 208 … … 243 243 Note that "weapons" is the subsection. This allows you to add more types of sub-objects. In our example, 244 244 you could add pilots, blinking lights or other stuff. If you don't want a subsection, just use "" (an 245 empty string). The you can add sub-objects directly into the mainclass.245 empty string). Then you can add sub-objects directly into the mainclass. 246 246 */ 247 247 #define XMLPortObjectExtended(classname, objectclass, sectionname, loadfunction, savefunction, xmlelement, mode, bApplyLoaderMask, bLoadBefore) \
Note: See TracChangeset
for help on using the changeset viewer.