2016-10-16 19:22:02 +02:00
|
|
|
/*****************************************************************************
|
2018-06-15 14:07:34 +02:00
|
|
|
* Copyright (c) 2014-2018 OpenRCT2 developers
|
2016-10-16 19:22:02 +02:00
|
|
|
*
|
2018-06-15 14:07:34 +02:00
|
|
|
* For a complete list of all authors, please refer to contributors.md
|
|
|
|
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
|
2016-10-16 19:22:02 +02:00
|
|
|
*
|
2018-06-15 14:07:34 +02:00
|
|
|
* OpenRCT2 is licensed under the GNU General Public License version 3.
|
2016-10-16 19:22:02 +02:00
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2016-10-17 16:06:05 +02:00
|
|
|
#include "TestPaint.hpp"
|
2016-10-16 19:22:02 +02:00
|
|
|
|
2018-06-22 22:29:03 +02:00
|
|
|
#include <openrct2/common.h>
|
|
|
|
|
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,
|
2020-08-18 14:27:23 +02:00
|
|
|
PAINT_98198C_COORDS
|
2016-10-17 12:42:59 +02:00
|
|
|
};
|
|
|
|
|
2018-02-14 09:42:26 +01:00
|
|
|
struct function_call
|
2016-10-17 12:42:59 +02:00
|
|
|
{
|
2018-06-20 17:28:51 +02:00
|
|
|
uint8_t function;
|
2016-10-17 12:42:59 +02:00
|
|
|
struct paint
|
|
|
|
{
|
2018-06-20 17:28:51 +02:00
|
|
|
uint32_t image_id;
|
2017-10-13 22:23:07 +02:00
|
|
|
LocationXY16 offset;
|
|
|
|
LocationXYZ16 bound_box_length;
|
2018-06-20 17:28:51 +02:00
|
|
|
int16_t z_offset;
|
2017-10-13 22:23:07 +02:00
|
|
|
LocationXYZ16 bound_box_offset;
|
2018-06-20 17:28:51 +02:00
|
|
|
uint32_t 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;
|
2018-06-20 17:28:51 +02:00
|
|
|
uint8_t segment;
|
2016-10-17 12:42:59 +02:00
|
|
|
int special;
|
|
|
|
int height;
|
2018-06-20 17:28:51 +02:00
|
|
|
uint32_t colour_flags;
|
|
|
|
int32_t prepend_to;
|
2016-10-17 12:42:59 +02:00
|
|
|
} supports;
|
2018-02-14 09:42:26 +01:00
|
|
|
};
|
2016-10-17 12:42:59 +02:00
|
|
|
|
2018-06-22 22:29:03 +02:00
|
|
|
class FunctionCall
|
|
|
|
{
|
2016-10-16 19:22:02 +02:00
|
|
|
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
|
|
|
};
|