mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-10 16:00:46 +00:00
Adds the ability for modules to flag if they override existing objects during their creation.
This commit is contained in:
parent
cb472bd51d
commit
bf6add9b33
3 changed files with 23 additions and 1 deletions
|
|
@ -89,6 +89,7 @@ private:
|
|||
bool mSynchronized;
|
||||
bool mDeprecated;
|
||||
bool mCriticalMerge;
|
||||
bool mOverrideExitingObjects;
|
||||
StringTableEntry mModuleDescription;
|
||||
StringTableEntry mAuthor;;
|
||||
StringTableEntry mModuleGroup;
|
||||
|
|
@ -141,6 +142,8 @@ public:
|
|||
inline bool getDeprecated( void ) const { return mDeprecated; }
|
||||
inline void setCriticalMerge( const bool mergeCritical ) { if ( checkUnlocked() ) { mCriticalMerge = mergeCritical; } }
|
||||
inline bool getCriticalMerge( void ) const { return mCriticalMerge; }
|
||||
inline void setOverrideExistingObjects(const bool overrideExistingObj) { if (checkUnlocked()) { mOverrideExitingObjects = overrideExistingObj; } }
|
||||
inline bool getOverrideExistingObjects(void) const { return mOverrideExitingObjects; }
|
||||
inline void setModuleDescription( const char* pModuleDescription ) { if ( checkUnlocked() ) { mModuleDescription = StringTable->insert(pModuleDescription); } }
|
||||
inline StringTableEntry getModuleDescription( void ) const { return mModuleDescription; }
|
||||
inline void setAuthor( const char* pAuthor ) { if ( checkUnlocked() ) { mAuthor = StringTable->insert(pAuthor); } }
|
||||
|
|
@ -206,6 +209,8 @@ protected:
|
|||
static bool setDeprecated(void* obj, const char* index, const char* data) { static_cast<ModuleDefinition*>(obj)->setDeprecated(dAtob(data)); return false; }
|
||||
static bool writeDeprecated( void* obj, StringTableEntry pFieldName ) { return static_cast<ModuleDefinition*>(obj)->getDeprecated() == true; }
|
||||
static bool writeCriticalMerge( void* obj, StringTableEntry pFieldName ){ return static_cast<ModuleDefinition*>(obj)->getCriticalMerge() == true; }
|
||||
static bool setOverrideExistingObjects(void* obj, const char* index, const char* data) { static_cast<ModuleDefinition*>(obj)->setOverrideExistingObjects(dAtob(data)); return false; }
|
||||
static bool writeOverrideExistingObjects(void* obj, StringTableEntry pFieldName) { return static_cast<ModuleDefinition*>(obj)->getOverrideExistingObjects() == true; }
|
||||
static bool setModuleDescription(void* obj, const char* index, const char* data) { static_cast<ModuleDefinition*>(obj)->setModuleDescription(data); return false; }
|
||||
static bool writeModuleDescription( void* obj, StringTableEntry pFieldName ) { return static_cast<ModuleDefinition*>(obj)->getModuleDescription() != StringTable->EmptyString(); }
|
||||
static bool setAuthor(void* obj, const char* index, const char* data) { static_cast<ModuleDefinition*>(obj)->setAuthor(data); return false; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue