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:
@@ -9,10 +9,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <deque>
|
||||
#include <openrct2/interface/InteractiveConsole.h>
|
||||
#include <openrct2/world/Location.hpp>
|
||||
#include <string>
|
||||
|
||||
namespace OpenRCT2::Ui
|
||||
{
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace OpenRCT2::Scripting
|
||||
}
|
||||
|
||||
private:
|
||||
int32_t width_get()
|
||||
int32_t width_get() const
|
||||
{
|
||||
return context_get_width();
|
||||
}
|
||||
|
||||
@@ -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{};
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user