MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / onDeleteNotify

Method onDeleteNotify

Engine/source/module/moduleManager.cpp:119–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117//-----------------------------------------------------------------------------
118
119void ModuleManager::onDeleteNotify( SimObject *object )
120{
121 // Cast to a module definition.
122 ModuleDefinition* pModuleDefinition = dynamic_cast<ModuleDefinition*>( object );
123
124 // Ignore if not appropriate.
125 if ( pModuleDefinition == NULL )
126 return;
127
128 // Warn.
129 Con::warnf( "Module Manager::onDeleteNotify() - Notified of a module definition deletion for module Id '%s' of version Id '%d' however this should not happen and can cause module database corruption.",
130 pModuleDefinition->getModuleId(), pModuleDefinition->getVersionId() );
131}
132
133//-----------------------------------------------------------------------------
134

Callers

nothing calls this directly

Calls 3

warnfFunction · 0.85
getModuleIdMethod · 0.80
getVersionIdMethod · 0.80

Tested by

no test coverage detected