1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

Merge OBJ_STRING_ID enums into one

This commit is contained in:
Michał Janiszewski
2016-11-13 13:37:30 +01:00
parent 0299844b13
commit 9fed68bf6f
13 changed files with 11 additions and 65 deletions

View File

@@ -24,11 +24,6 @@ extern "C"
#include "../localisation/localisation.h"
}
enum OBJ_STRING_ID
{
OBJ_STRING_ID_NAME,
};
void BannerObject::ReadLegacy(IReadObjectContext * context, IStream * stream)
{
stream->Seek(6, STREAM_SEEK_CURRENT);

View File

@@ -23,11 +23,6 @@ extern "C"
#include "../localisation/localisation.h"
}
enum OBJ_STRING_ID
{
OBJ_STRING_ID_NAME,
};
void EntranceObject::ReadLegacy(IReadObjectContext * context, IStream * stream)
{
stream->Seek(6, STREAM_SEEK_CURRENT);

View File

@@ -23,11 +23,6 @@ extern "C"
#include "../localisation/localisation.h"
}
enum OBJ_STRING_ID
{
OBJ_STRING_ID_NAME,
};
void FootpathItemObject::ReadLegacy(IReadObjectContext * context, IStream * stream)
{
stream->Seek(6, STREAM_SEEK_CURRENT);

View File

@@ -24,11 +24,6 @@ extern "C"
#include "../world/footpath.h"
}
enum OBJ_STRING_ID
{
OBJ_STRING_ID_NAME,
};
void FootpathObject::ReadLegacy(IReadObjectContext * context, IStream * stream)
{
stream->Seek(10, STREAM_SEEK_CURRENT);

View File

@@ -24,11 +24,6 @@ extern "C"
#include "../localisation/localisation.h"
}
enum OBJ_STRING_ID
{
OBJ_STRING_ID_NAME,
};
LargeSceneryObject::~LargeSceneryObject()
{
Memory::Free(_3dFont);

View File

@@ -23,11 +23,6 @@ extern "C"
#include "../localisation/localisation.h"
}
enum OBJ_STRING_ID
{
OBJ_STRING_ID_NAME,
};
Object::Object(const rct_object_entry &entry)
{
_objectEntry = entry;

View File

@@ -25,6 +25,16 @@ extern "C"
#include "../object.h"
}
enum OBJ_STRING_ID
{
OBJ_STRING_ID_NAME,
OBJ_STRING_ID_DESCRIPTION,
OBJ_STRING_ID_SCENARIO_NAME = 0,
OBJ_STRING_ID_PARK_NAME = 1,
OBJ_STRING_ID_SCENARIO_DETAILS = 2,
OBJ_STRING_ID_CAPACITY = 2,
};
interface IStream;
struct ObjectRepositoryItem;
struct rct_drawpixelinfo;

View File

@@ -28,13 +28,6 @@ extern "C"
#include "../rct1.h"
}
enum OBJ_STRING_ID
{
OBJ_STRING_ID_NAME,
OBJ_STRING_ID_DESCRIPTION,
OBJ_STRING_ID_CAPACITY,
};
RideObject::~RideObject()
{
for (int i = 0; i < 4; i++)
@@ -90,7 +83,7 @@ void RideObject::ReadLegacy(IReadObjectContext * context, IStream * stream)
// Read preset colours, by default there are 32
_presetColours.count = stream->ReadValue<uint8>();
int coloursCount = _presetColours.count;
// To indicate a ride has different colours each train the count
// is set to 255. There are only actually 32 colours though.

View File

@@ -26,11 +26,6 @@ extern "C"
#include "../localisation/localisation.h"
}
enum OBJ_STRING_ID
{
OBJ_STRING_ID_NAME,
};
SceneryGroupObject::~SceneryGroupObject()
{
Memory::Free(_items);

View File

@@ -25,11 +25,6 @@ extern "C"
#include "../localisation/localisation.h"
}
enum OBJ_STRING_ID
{
OBJ_STRING_ID_NAME,
};
SmallSceneryObject::~SmallSceneryObject()
{
Memory::Free(_var10data);

View File

@@ -22,13 +22,6 @@ extern "C"
#include "../localisation/localisation.h"
}
enum OBJ_STRING_ID
{
OBJ_STRING_ID_SCENARIO_NAME,
OBJ_STRING_ID_PARK_NAME,
OBJ_STRING_ID_SCENARIO_DETAILS,
};
void StexObject::ReadLegacy(IReadObjectContext * context, IStream * stream)
{
stream->Seek(6, STREAM_SEEK_CURRENT);

View File

@@ -24,11 +24,6 @@ extern "C"
#include "../localisation/localisation.h"
}
enum OBJ_STRING_ID
{
OBJ_STRING_ID_NAME,
};
void WallObject::ReadLegacy(IReadObjectContext * context, IStream * stream)
{
stream->Seek(6, STREAM_SEEK_CURRENT);

View File

@@ -22,11 +22,6 @@ extern "C"
#include "../localisation/localisation.h"
}
enum OBJ_STRING_ID
{
OBJ_STRING_ID_NAME,
};
void WaterObject::ReadLegacy(IReadObjectContext * context, IStream * stream)
{
stream->Seek(6, STREAM_SEEK_CURRENT);