MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetName

Method GetName

trinity/Eve/SpaceObjectFactory/EveSOFData.cpp:281–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279
280
281std::string EveSOFDataHullController::GetName() const
282{
283 auto slash = m_path.rfind( '/' );
284 if( slash == std::string::npos )
285 {
286 return "";
287 }
288 std::string result = m_path.substr( slash + 1 );
289 auto dot = result.rfind( '.' );
290 if( dot != std::string::npos )
291 {
292 result = result.substr( 0, dot );
293 }
294 return result;
295}
296
297
298EveSOFDataHull::EveSOFDataHull( IRoot* lockobj ) :

Callers 14

RebuildBoosterSetMethod · 0.45
GetDebugOptionsMethod · 0.45
RenderDebugInfoMethod · 0.45
MergeToLocatorSetMethod · 0.45
GetEffectChildByNameMethod · 0.45
UpdateCurveSetMethod · 0.45
PlayCurveSetMethod · 0.45
StopCurveSetMethod · 0.45
GetCurveSetDurationMethod · 0.45
GetRangeDurationMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected