mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 16:28:28 +00:00
[Cleanup] Cleanup Object Type Code (#4375)
* [Cleanup] Cleanup Object Type Code * Move to object.cpp/object.h
This commit is contained in:
@@ -1293,3 +1293,13 @@ void Object::FixZ()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::string ObjectType::GetName(uint32 object_type)
|
||||
{
|
||||
return IsValid(object_type) ? object_types[object_type] : "UNKNOWN OBJECT TYPE";
|
||||
}
|
||||
|
||||
bool ObjectType::IsValid(uint32 object_type)
|
||||
{
|
||||
return object_types.find(object_type) != object_types.end();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user