mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 13:33:02 +01:00
* Add object entry manager Port over wall and banner * Port over small scenery to ObjectEntryManager Clang format files Actually make things safe Fix build
12 lines
336 B
C++
12 lines
336 B
C++
#include "ObjectTypes.h"
|
|
|
|
namespace OpenRCT2::ObjectManager
|
|
{
|
|
const void* GetObjectEntry(ObjectType type, ObjectEntryIndex idx);
|
|
|
|
template<typename T> const T* GetObjectEntry(ObjectEntryIndex idx)
|
|
{
|
|
return reinterpret_cast<const T*>(GetObjectEntry(T::kObjectType, idx));
|
|
}
|
|
} // namespace OpenRCT2::ObjectManager
|