MCPcopy Create free account
hub / github.com/ddnet/ddnet / SelectedSound

Method SelectedSound

src/game/editor/mapitems/map.cpp:1016–1023  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1014}
1015
1016std::shared_ptr<CEditorSound> CEditorMap::SelectedSound() const
1017{
1018 if(m_SelectedSound < 0 || (size_t)m_SelectedSound >= m_vpSounds.size())
1019 {
1020 return nullptr;
1021 }
1022 return m_vpSounds[m_SelectedSound];
1023}
1024
1025void CEditorMap::SelectSound(const std::shared_ptr<CEditorSound> &pSound)
1026{

Callers 4

CallbackSaveSoundMethod · 0.80
DoToolbarSoundsMethod · 0.80
ReplaceSoundMethod · 0.80
PopupSoundMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected