2016-10-16 19:22:02 +02:00
|
|
|
#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers
|
|
|
|
/*****************************************************************************
|
|
|
|
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
|
|
|
|
*
|
|
|
|
* OpenRCT2 is the work of many authors, a full list can be found in contributors.md
|
|
|
|
* For more information, visit https://github.com/OpenRCT2/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.
|
|
|
|
*
|
|
|
|
* A full copy of the GNU General Public License can be found in licence.txt
|
|
|
|
*****************************************************************************/
|
|
|
|
#pragma endregion
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2016-12-28 14:16:15 +01:00
|
|
|
#include <openrct2/common.h>
|
2016-10-17 16:06:05 +02:00
|
|
|
#include "TestPaint.hpp"
|
2016-10-16 19:22:02 +02:00
|
|
|
|
2016-10-17 12:42:59 +02:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
PAINT_98196C,
|
|
|
|
PAINT_98197C,
|
|
|
|
PAINT_98198C,
|
|
|
|
PAINT_98199C,
|
|
|
|
|
|
|
|
SUPPORTS_METAL_A,
|
|
|
|
SUPPORTS_METAL_B,
|
|
|
|
SUPPORTS_WOOD_A,
|
|
|
|
SUPPORTS_WOOD_B,
|
|
|
|
|
|
|
|
SET_SEGMENT_HEIGHT,
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
uint8 function;
|
|
|
|
struct paint
|
|
|
|
{
|
|
|
|
uint32 image_id;
|
|
|
|
rct_xy16 offset;
|
|
|
|
rct_xyz16 bound_box_length;
|
|
|
|
sint16 z_offset;
|
|
|
|
rct_xyz16 bound_box_offset;
|
|
|
|
uint32 rotation;
|
2016-12-19 18:45:08 +01:00
|
|
|
paint_struct output_struct;
|
2016-10-17 12:42:59 +02:00
|
|
|
} paint;
|
|
|
|
struct supports
|
|
|
|
{
|
|
|
|
int type;
|
|
|
|
uint8 segment;
|
|
|
|
int special;
|
|
|
|
int height;
|
|
|
|
uint32 colour_flags;
|
2016-12-19 18:45:08 +01:00
|
|
|
sint32 prepend_to;
|
2016-10-17 12:42:59 +02:00
|
|
|
} supports;
|
|
|
|
} function_call;
|
|
|
|
|
2016-10-16 19:22:02 +02:00
|
|
|
class FunctionCall {
|
|
|
|
public:
|
|
|
|
static bool AssertsEquals(function_call expected, function_call actual);
|
2016-10-16 21:15:40 +02:00
|
|
|
static bool AssertsEquals(std::vector<function_call> expected, std::vector<function_call> actual);
|
2016-10-16 19:22:02 +02:00
|
|
|
};
|