OpenRCT2/test/testpaint/FunctionCall.hpp

61 lines
1.4 KiB
C++
Raw Normal View History

2016-10-16 19:22:02 +02:00
/*****************************************************************************
* Copyright (c) 2014-2018 OpenRCT2 developers
2016-10-16 19:22:02 +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
*
* 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>
enum
{
PAINT_98196C,
PAINT_98197C,
PAINT_98198C,
PAINT_98199C,
SUPPORTS_METAL_A,
SUPPORTS_METAL_B,
SUPPORTS_WOOD_A,
SUPPORTS_WOOD_B,
SET_SEGMENT_HEIGHT,
};
struct function_call
{
uint8_t function;
struct paint
{
uint32_t image_id;
LocationXY16 offset;
LocationXYZ16 bound_box_length;
int16_t z_offset;
LocationXYZ16 bound_box_offset;
uint32_t rotation;
2016-12-19 18:45:08 +01:00
paint_struct output_struct;
} paint;
struct supports
{
int type;
uint8_t segment;
int special;
int height;
uint32_t colour_flags;
int32_t prepend_to;
} supports;
};
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
};