1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 20:43:04 +01:00

start getting object loading working

This commit is contained in:
Ted John
2016-06-25 16:34:35 +01:00
parent e93b2141a1
commit 78e15b1d56
17 changed files with 277 additions and 32 deletions

View File

@@ -17,6 +17,12 @@
#include "../core/IStream.hpp"
#include "EntranceObject.h"
extern "C"
{
#include "../drawing/drawing.h"
#include "../localisation/localisation.h"
}
enum OBJ_STRING_ID
{
OBJ_STRING_ID_NAME,
@@ -35,12 +41,13 @@ void EntranceObject::ReadLegacy(IStream * stream)
void EntranceObject::Load()
{
_legacyType.string_idx = language_allocate_object_string(GetName());
_legacyType.image_id = gfx_object_allocate_images(ImageTable.GetImages(), ImageTable.GetCount());
}
void EntranceObject::Unload()
{
language_free_object_string(_legacyType.string_idx);
}
const utf8 * EntranceObject::GetName()