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

Method GetHullLocators

trinity/Eve/SpaceObjectFactory/EveSOFDNA.cpp:842–850  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Return an array to all the damage locators on this hull --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

840// Return an array to all the damage locators on this hull
841// --------------------------------------------------------------------------------
842const std::vector<EveSOFDataMgr::LocatorDirectionData>* EveSOFDNA::GetHullLocators( const char* setName, size_t n ) const
843{
844 auto locatorSet = m_hullDatas[n]->locatorSets.find( BlueSharedString( setName ) );
845 if( locatorSet == m_hullDatas[n]->locatorSets.end() )
846 {
847 return nullptr;
848 }
849 return &locatorSet->second;
850}
851
852
853// --------------------------------------------------------------------------------

Callers 2

SetupLocatorSetsMethod · 0.80
SetupLayoutMethod · 0.80

Calls 1

endMethod · 0.45

Tested by

no test coverage detected