Files
OpenRCT2-Web/src/object.h
T

64 lines
1.9 KiB
C
Raw Normal View History

2014-04-10 17:08:41 +01:00
/*****************************************************************************
* Copyright (c) 2014 Ted John
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
*
* This file is part of OpenRCT2.
*
* OpenRCT2 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#ifndef _OBJECT_H_
#define _OBJECT_H_
2014-05-24 22:14:42 +01:00
#include <stdio.h>
2014-04-10 17:08:41 +01:00
#include "rct2.h"
/**
* Object entry structure.
2014-05-24 16:48:13 +01:00
* size: 0x10
2014-04-10 17:08:41 +01:00
*/
typedef struct {
2014-05-24 18:07:29 +01:00
uint32 flags;
char name[8];
uint32 checksum;
2014-04-10 17:08:41 +01:00
} rct_object_entry;
2014-05-24 18:07:29 +01:00
/**
* Object entry structure extended.
* size: 0x14
*/
typedef struct {
uint32 flags;
char name[8];
uint32 checksum;
uint32 extended;
} rct_object_entry_extended;
2014-09-29 19:07:25 +01:00
int object_entry_group_counts[];
2014-05-24 01:34:17 +01:00
void object_list_load();
int object_read_and_load_entries(FILE *file);
2014-09-27 14:26:32 +01:00
int object_load_packed(FILE *file);
2014-05-24 18:07:29 +01:00
void object_unload_all();
2014-04-10 17:08:41 +01:00
2014-05-24 18:07:29 +01:00
int object_load(int groupIndex, rct_object_entry *entry);
void object_unload(int groupIndex, rct_object_entry_extended *entry);
2014-05-26 17:59:42 +01:00
int object_get_scenario_text(rct_object_entry *entry);
void object_free_scenario_text();
int object_get_length(rct_object_entry *entry);
rct_object_entry *object_get_next(rct_object_entry *entry);
2014-09-27 14:26:32 +01:00
int object_calculate_checksum(rct_object_entry *entry, char *data, int dataLength);
int object_paint(int type, int eax, int ebx, int ecx, int edx, int esi, int edi, int ebp);
2014-05-24 16:48:13 +01:00
#endif