MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / copyTo

Method copyTo

Engine/source/assets/assetBase.cpp:111–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109//------------------------------------------------------------------------------
110
111void AssetBase::copyTo(SimObject* object)
112{
113 // Call to parent.
114 Parent::copyTo(object);
115
116 // Cast to asset.
117 AssetBase* pAsset = static_cast<AssetBase*>(object);
118
119 // Sanity!
120 AssertFatal(pAsset != NULL, "AssetBase::copyTo() - Object is not the correct type.");
121
122 // Copy state.
123 pAsset->setAssetName(getAssetName());
124 pAsset->setAssetDescription(getAssetDescription());
125 pAsset->setAssetCategory(getAssetCategory());
126 pAsset->setAssetAutoUnload(getAssetAutoUnload());
127 pAsset->setAssetInternal(getAssetInternal());
128}
129
130//-----------------------------------------------------------------------------
131

Callers 1

registerProbeMethod · 0.45

Calls 5

setAssetNameMethod · 0.80
setAssetDescriptionMethod · 0.45
setAssetCategoryMethod · 0.45
setAssetAutoUnloadMethod · 0.45
setAssetInternalMethod · 0.45

Tested by

no test coverage detected