| 65 | void SetSelectedClass(int id) const override { _object_gui.sel_class = this->GetClassIndex(id); } |
| 66 | |
| 67 | StringID GetClassName(int id) const override |
| 68 | { |
| 69 | const auto *objclass = this->GetClass(id); |
| 70 | if (objclass->GetUISpecCount() == 0) return INVALID_STRING_ID; |
| 71 | return objclass->name; |
| 72 | } |
| 73 | |
| 74 | int GetSelectedType() const override { return _object_gui.sel_type; } |
| 75 | void SetSelectedType(int id) const override { _object_gui.sel_type = id; } |
nothing calls this directly
no test coverage detected