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

Method MergeToLocatorSet

trinity/Eve/SpaceObject/EveSpaceObject2.cpp:2510–2524  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Merges the locatorSets into the locator sets of the space object --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2508// Merges the locatorSets into the locator sets of the space object
2509// --------------------------------------------------------------------------------
2510void EveSpaceObject2::MergeToLocatorSet( const EveLocatorSets& locatorSet )
2511{
2512 const Locator* locators = (const Locator*)&( *locatorSet.GetLocators() )[0];
2513
2514 for( auto it = m_locatorSets.cbegin(); it != m_locatorSets.cend(); ++it )
2515 {
2516 if( ( *it )->HasName( locatorSet.GetName() ) )
2517 {
2518 ( *it )->Append( locators, locatorSet.GetLocators()->size() );
2519 return;
2520 }
2521 }
2522
2523 AddLocatorSet( locatorSet.GetName(), locators, locatorSet.GetLocators()->size() );
2524}
2525
2526
2527// --------------------------------------------------------------------------------

Callers 2

SetupBoostersMethod · 0.80
SetupLocatorSetsMethod · 0.80

Calls 5

GetLocatorsMethod · 0.80
HasNameMethod · 0.80
AppendMethod · 0.80
sizeMethod · 0.80
GetNameMethod · 0.45

Tested by

no test coverage detected