about summary refs log tree commit diff stats
path: root/data/maps/the_great/rooms/Maze Moon Area.txtpb
blob: 10af4a1689bc60936242a46243aa5685fccd91af (plain) (generated by cgit-pink 1.4.1 (git 2.36.1) at 2025-10-10 16:33:05 +0000
="n">id2 > id1) { // Make sure id1 < id2 std::swap(id1, id2); } if (!network_by_item_.count(id1)) { network_by_item_[id1] = {}; } if (!network_by_item_.count(id2)) { network_by_item_[id2] = {}; } network_by_item_[id1].insert({id1, id2}); network_by_item_[id2].insert({id1, id2}); } bool NetworkSet::IsItemInNetwork(int id) const { return network_by_item_.count(id); } const std::set<std::pair<int, int>>& NetworkSet::GetNetworkGraph(int id) const { return network_by_item_.at(id); }