2017-01-15 13:53:19 +01:00
|
|
|
/*****************************************************************************
|
2023-01-01 11:58:01 +01:00
|
|
|
* Copyright (c) 2014-2023 OpenRCT2 developers
|
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
|
|
|
|
*
|
|
|
|
* OpenRCT2 is licensed under the GNU General Public License version 3.
|
|
|
|
*****************************************************************************/
|
2017-01-15 13:53:19 +01:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../common.h"
|
2018-01-03 14:56:08 +01:00
|
|
|
#include "Map.h"
|
2017-01-15 13:53:19 +01:00
|
|
|
|
2020-10-15 03:04:39 +02:00
|
|
|
namespace GameActions
|
|
|
|
{
|
|
|
|
class Result;
|
|
|
|
}
|
|
|
|
|
2021-02-19 17:12:22 +01:00
|
|
|
namespace OpenRCT2::TileInspector
|
|
|
|
{
|
2021-08-01 22:13:12 +02:00
|
|
|
void SetSelectedElement(const TileElement* elem);
|
|
|
|
bool IsElementSelected(const TileElement* elem);
|
|
|
|
|
2021-11-24 08:35:08 +01:00
|
|
|
GameActions::Result InsertCorruptElementAt(const CoordsXY& loc, int16_t elementIndex, bool isExecuting);
|
|
|
|
GameActions::Result RemoveElementAt(const CoordsXY& loc, int16_t elementIndex, bool isExecuting);
|
|
|
|
GameActions::Result SwapElementsAt(const CoordsXY& loc, int16_t first, int16_t second, bool isExecuting);
|
|
|
|
GameActions::Result RotateElementAt(const CoordsXY& loc, int32_t elementIndex, bool isExecuting);
|
|
|
|
GameActions::Result ToggleInvisibilityOfElementAt(const CoordsXY& loc, int32_t elementIndex, bool isExecuting);
|
|
|
|
GameActions::Result PasteElementAt(const CoordsXY& loc, TileElement element, bool isExecuting);
|
|
|
|
GameActions::Result SortElementsAt(const CoordsXY& loc, bool isExecuting);
|
|
|
|
GameActions::Result AnyBaseHeightOffset(const CoordsXY& loc, int16_t elementIndex, int8_t heightOffset, bool isExecuting);
|
|
|
|
GameActions::Result SurfaceShowParkFences(const CoordsXY& loc, bool showFences, bool isExecuting);
|
|
|
|
GameActions::Result SurfaceToggleCorner(const CoordsXY& loc, int32_t cornerIndex, bool isExecuting);
|
|
|
|
GameActions::Result SurfaceToggleDiagonal(const CoordsXY& loc, bool isExecuting);
|
|
|
|
GameActions::Result PathSetSloped(const CoordsXY& loc, int32_t elementIndex, bool sloped, bool isExecuting);
|
2023-03-23 09:16:32 +01:00
|
|
|
GameActions::Result PathSetJunctionRailings(
|
|
|
|
const CoordsXY& loc, int32_t elementIndex, bool hasJunctionRailings, bool isExecuting);
|
2021-11-24 08:35:08 +01:00
|
|
|
GameActions::Result PathSetBroken(const CoordsXY& loc, int32_t elementIndex, bool broken, bool isExecuting);
|
|
|
|
GameActions::Result PathToggleEdge(const CoordsXY& loc, int32_t elementIndex, int32_t cornerIndex, bool isExecuting);
|
|
|
|
GameActions::Result EntranceMakeUsable(const CoordsXY& loc, int32_t elementIndex, bool isExecuting);
|
|
|
|
GameActions::Result WallSetSlope(const CoordsXY& loc, int32_t elementIndex, int32_t slopeValue, bool isExecuting);
|
|
|
|
GameActions::Result WallAnimationFrameOffset(
|
2021-02-19 17:12:22 +01:00
|
|
|
const CoordsXY& loc, int16_t elementIndex, int8_t animationFrameOffset, bool isExecuting);
|
2021-11-24 08:35:08 +01:00
|
|
|
GameActions::Result TrackBaseHeightOffset(const CoordsXY& loc, int32_t elementIndex, int8_t offset, bool isExecuting);
|
2022-12-31 14:06:22 +01:00
|
|
|
GameActions::Result TrackSetBrakeClosed(const CoordsXY& loc, int32_t elementIndex, bool isClosed, bool isExecuting);
|
2021-11-24 08:35:08 +01:00
|
|
|
GameActions::Result TrackSetIndestructible(
|
2021-02-19 17:12:22 +01:00
|
|
|
const CoordsXY& loc, int32_t elementIndex, bool isIndestructible, bool isExecuting);
|
2021-11-24 08:35:08 +01:00
|
|
|
GameActions::Result TrackSetChain(
|
2021-02-19 17:12:22 +01:00
|
|
|
const CoordsXY& loc, int32_t elementIndex, bool entireTrackBlock, bool setChain, bool isExecuting);
|
2021-11-24 08:35:08 +01:00
|
|
|
GameActions::Result ScenerySetQuarterLocation(
|
2021-02-19 17:12:22 +01:00
|
|
|
const CoordsXY& loc, int32_t elementIndex, int32_t quarterIndex, bool isExecuting);
|
2021-11-24 08:35:08 +01:00
|
|
|
GameActions::Result ScenerySetQuarterCollision(
|
2021-02-19 17:12:22 +01:00
|
|
|
const CoordsXY& loc, int32_t elementIndex, int32_t quarterIndex, bool isExecuting);
|
2021-11-24 08:35:08 +01:00
|
|
|
GameActions::Result BannerToggleBlockingEdge(
|
2021-02-19 17:12:22 +01:00
|
|
|
const CoordsXY& loc, int32_t elementIndex, int32_t edgeIndex, bool isExecuting);
|
|
|
|
|
|
|
|
} // namespace OpenRCT2::TileInspector
|