physx::PxU32 ModuleClothing::forceLoadAssets() { physx::PxU32 loadedAssetCount = 0; for (physx::PxU32 i = 0; i < mAssetAuthorableObjectFactories.getSize(); i++) { NiApexAuthorableObject* ao = static_cast<NiApexAuthorableObject*>(mAssetAuthorableObjectFactories.getResource(i)); loadedAssetCount += ao->forceLoadAssets(); } return loadedAssetCount; }
physx::PxU32 ModuleDestructible::forceLoadAssets() { physx::PxU32 loadedAssetCount = 0; for (physx::PxU32 i = 0; i < mAuthorableObjects.getSize(); i++) { NiApexAuthorableObject* ao = static_cast<NiApexAuthorableObject*>(mAuthorableObjects.getResource(i)); loadedAssetCount += ao->forceLoadAssets(); } return loadedAssetCount; }