forked from rosebudai/OpenRCT2-Web
Remove openrct2-ui/scripting includes
This commit is contained in:
1 parent
2c8891ca8b
commit
e75c1dde15
8 files changed
+30
-20
No files matched your search
@@ -19,7 +19,6 @@
|
||||
#include <openrct2/drawing/ImageImporter.h>
|
||||
#include <openrct2/drawing/NewDrawing.h>
|
||||
#include <openrct2/drawing/X8DrawingEngine.h>
|
||||
#include <openrct2/scripting/Plugin.h>
|
||||
#include <thirdparty/base64.hpp>
|
||||
|
||||
using namespace OpenRCT2::Drawing;
|
||||
|
||||
@@ -14,10 +14,11 @@
|
||||
#include <memory>
|
||||
#include <openrct2/drawing/Image.h>
|
||||
#include <openrct2/scripting/Plugin.h>
|
||||
#include <openrct2/scripting/ScriptEngine.h>
|
||||
|
||||
namespace OpenRCT2::Scripting
|
||||
{
|
||||
class ScriptEngine;
|
||||
|
||||
void InitialiseCustomImages(ScriptEngine& scriptEngine);
|
||||
std::optional<ImageList> AllocateCustomImages(const std::shared_ptr<Plugin>& plugin, uint32_t count);
|
||||
bool FreeCustomImages(const std::shared_ptr<Plugin>& plugin, ImageList range);
|
||||
|
||||
@@ -11,21 +11,21 @@
|
||||
|
||||
#include "CustomListView.h"
|
||||
|
||||
#include "../interface/Viewport.h"
|
||||
#include "../interface/Widget.h"
|
||||
#include "../windows/Windows.h"
|
||||
|
||||
#include <numeric>
|
||||
#include <openrct2-ui/interface/Window.h>
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2/core/String.hpp>
|
||||
#include <openrct2/drawing/ColourMap.h>
|
||||
#include <openrct2/drawing/Drawing.String.h>
|
||||
#include <openrct2/drawing/Drawing.h>
|
||||
#include <openrct2/drawing/FilterPaletteIds.h>
|
||||
#include <openrct2/drawing/Rectangle.h>
|
||||
#include <openrct2/drawing/RenderTarget.h>
|
||||
#include <openrct2/drawing/Text.h>
|
||||
#include <openrct2/interface/Widget.h>
|
||||
#include <openrct2/localisation/Formatter.h>
|
||||
#include <openrct2/localisation/Formatting.h>
|
||||
#include <openrct2/localisation/StringIds.h>
|
||||
#include <openrct2/scripting/ScriptEngine.h>
|
||||
|
||||
using namespace OpenRCT2::Drawing;
|
||||
using namespace OpenRCT2::Scripting;
|
||||
|
||||
@@ -11,15 +11,25 @@
|
||||
|
||||
#ifdef ENABLE_SCRIPTING
|
||||
|
||||
#include "../interface/Window.h"
|
||||
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <openrct2/scripting/ScriptEngine.h>
|
||||
#include <openrct2/scripting/Plugin.h>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace OpenRCT2
|
||||
{
|
||||
struct ScrollArea;
|
||||
struct Widget;
|
||||
struct WindowBase;
|
||||
}
|
||||
|
||||
namespace OpenRCT2::Drawing
|
||||
{
|
||||
struct RenderTarget;
|
||||
}
|
||||
|
||||
namespace OpenRCT2::Ui::Windows
|
||||
{
|
||||
using namespace OpenRCT2::Scripting;
|
||||
|
||||
@@ -11,14 +11,11 @@
|
||||
|
||||
#include "CustomMenu.h"
|
||||
|
||||
#include "../interface/Viewport.h"
|
||||
|
||||
#include <openrct2-ui/UiContext.h>
|
||||
#include <openrct2-ui/input/ShortcutManager.h>
|
||||
#include <openrct2/Input.h>
|
||||
#include <openrct2/core/EnumMap.hpp>
|
||||
#include <openrct2/interface/Viewport.h>
|
||||
#include <openrct2/scripting/ScriptUtil.hpp>
|
||||
#include <openrct2/ui/UiContext.h>
|
||||
#include <openrct2/ui/WindowManager.h>
|
||||
#include <openrct2/world/Map.h>
|
||||
|
||||
|
||||
@@ -18,8 +18,6 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
enum class CursorID : uint8_t;
|
||||
|
||||
namespace OpenRCT2::Scripting
|
||||
{
|
||||
enum class CustomToolbarMenuItemKind
|
||||
|
||||
@@ -16,8 +16,6 @@
|
||||
#include "../scripting/ScWidget.hpp"
|
||||
#include "../windows/Windows.h"
|
||||
#include "CustomListView.h"
|
||||
#include "ScUi.hpp"
|
||||
#include "ScWindow.h"
|
||||
|
||||
#include <limits>
|
||||
#include <openrct2/SpriteIds.h>
|
||||
@@ -26,7 +24,6 @@
|
||||
#include <openrct2/interface/ColourWithFlags.h>
|
||||
#include <openrct2/interface/Viewport.h>
|
||||
#include <openrct2/interface/WindowTypes.h>
|
||||
#include <openrct2/scripting/Plugin.h>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
@@ -11,10 +11,18 @@
|
||||
|
||||
#ifdef ENABLE_SCRIPTING
|
||||
|
||||
#include <openrct2/interface/WindowBase.h>
|
||||
#include <openrct2/scripting/ScriptEngine.h>
|
||||
#include <quickjs.h>
|
||||
|
||||
namespace OpenRCT2
|
||||
{
|
||||
enum class WindowClass : uint8_t;
|
||||
|
||||
using WindowNumber = int16_t;
|
||||
|
||||
struct WindowBase;
|
||||
}
|
||||
|
||||
namespace OpenRCT2::Scripting
|
||||
{
|
||||
class ScWindow;
|
||||
|
||||
Reference in new issue
Block a user