static */
| 19 | #include "../../safeguards.h" |
| 20 | |
| 21 | /* static */ bool ScriptObjectType::IsValidObjectType(ObjectType object_type) |
| 22 | { |
| 23 | if (object_type >= ObjectSpec::Count()) return false; |
| 24 | return ObjectSpec::Get(object_type)->IsEverAvailable(); |
| 25 | } |
| 26 | |
| 27 | /* static */ std::optional<std::string> ScriptObjectType::GetName(ObjectType object_type) |
| 28 | { |
nothing calls this directly
no test coverage detected