| 106 | } |
| 107 | |
| 108 | void FillUsedItems(std::set<PickerItem> &items) override |
| 109 | { |
| 110 | for (const Object *o : Object::Iterate()) { |
| 111 | if (GetTileOwner(o->location.tile) != _current_company) continue; |
| 112 | const ObjectSpec *spec = ObjectSpec::Get(o->type); |
| 113 | if (spec == nullptr || spec->class_index == INVALID_OBJECT_CLASS || !spec->IsEverAvailable()) continue; |
| 114 | items.insert(GetPickerItem(spec)); |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | static ObjectPickerCallbacks instance; |
| 119 | }; |
nothing calls this directly
no test coverage detected