1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00

Apply suggestions from code review

Co-Authored-By: Michał Janiszewski <janisozaur@users.noreply.github.com>
Co-Authored-By: Aaron van Geffen <aaron@aaronweb.net>
Co-Authored-By: Tulio Leao <tupaschoal@gmail.com>
This commit is contained in:
Ted John
2020-04-24 13:23:39 +01:00
parent 161985259a
commit 3fe49ca2a3
5 changed files with 6 additions and 8 deletions

View File

@@ -9,10 +9,8 @@
#pragma once
#include <deque>
#include <openrct2/interface/InteractiveConsole.h>
#include <openrct2/world/Location.hpp>
#include <string>
namespace OpenRCT2::Ui
{

View File

@@ -46,7 +46,7 @@ namespace OpenRCT2::Scripting
}
private:
int32_t width_get()
int32_t width_get() const
{
return context_get_width();
}

View File

@@ -40,7 +40,7 @@ namespace OpenRCT2::Scripting
std::string Name;
std::string Version;
std::vector<std::string> Authors;
PluginType Type;
PluginType Type{};
int32_t MinApiVersion{};
DukValue Main;
};
@@ -50,7 +50,7 @@ namespace OpenRCT2::Scripting
private:
duk_context* _context{};
std::string _path;
PluginMetadata _metadata;
PluginMetadata _metadata{};
std::string _code;
bool _hasStarted{};

View File

@@ -1,5 +1,5 @@
/*****************************************************************************
* Copyright (c) 2020 OpenRCT2 developers
* Copyright (c) 2014-2020 OpenRCT2 developers
*
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2