MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / Unselect

Method Unselect

src/network/network_content.cpp:858–865  ·  view source on GitHub ↗

* Unselect a specific content id. * @param cid the content ID to deselect */

Source from the content-addressed store, hash-verified

856 * @param cid the content ID to deselect
857 */
858void ClientNetworkContentSocketHandler::Unselect(ContentID cid)
859{
860 ContentInfo *ci = this->GetContent(cid);
861 if (ci == nullptr || !ci->IsSelected()) return;
862
863 ci->state = ContentInfo::State::Unselected;
864 this->CheckDependencyState(*ci);
865}
866
867/** Select everything we can select */
868void ClientNetworkContentSocketHandler::SelectAll()

Callers 3

ToggleSelectedStateMethod · 0.95
CheckDependencyStateMethod · 0.95
ConContentFunction · 0.80

Calls 3

GetContentMethod · 0.95
CheckDependencyStateMethod · 0.95
IsSelectedMethod · 0.80

Tested by

no test coverage detected