mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
Adds FIELD_SpecialtyArrayField field type and handling for it in PersistenceManager, as well as a use-case of it for the surface field in ConvexShape
This commit is contained in:
parent
e56df92002
commit
61d9e82ce5
9 changed files with 449 additions and 183 deletions
|
|
@ -221,6 +221,12 @@ protected:
|
|||
// Attempts to look up the property in the ParsedObject
|
||||
S32 getPropertyIndex(ParsedObject* parsedObject, const char* fieldName, U32 arrayPos = 0);
|
||||
|
||||
// Attempts to look up the special array property in the ParsedObject
|
||||
// This is distinct from getPropertyIndex because while that assumes it's an array'd field
|
||||
// This figures the property in question is one that is specially tagged for implicit, arbitrarily sized lists
|
||||
// Like ConvexShape's 'surfaces' or a spline's 'node' properties
|
||||
S32 getSpecialPropertyAtOffset(ParsedObject* parsedObject, const char* fieldName, U32 offsetPos);
|
||||
|
||||
// Gets the amount of indent on the ParsedObject.
|
||||
char* getObjectIndent(ParsedObject* object);
|
||||
|
||||
|
|
@ -320,4 +326,4 @@ public:
|
|||
DECLARE_CONOBJECT(PersistenceManager);
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue