mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 14:02:59 +01:00
42 lines
1008 B
C++
42 lines
1008 B
C++
/*****************************************************************************
|
|
* Copyright (c) 2014-2023 OpenRCT2 developers
|
|
*
|
|
* 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.
|
|
*****************************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#ifdef ENABLE_SCRIPTING
|
|
|
|
# include "../../Duktape.hpp"
|
|
|
|
# include <string>
|
|
# include <vector>
|
|
|
|
namespace OpenRCT2::Scripting
|
|
{
|
|
class ScPlayerGroup
|
|
{
|
|
int32_t _id;
|
|
|
|
public:
|
|
ScPlayerGroup(int32_t id);
|
|
|
|
int32_t id_get();
|
|
|
|
std::string name_get() const;
|
|
void name_set(std::string value);
|
|
|
|
std::vector<std::string> permissions_get() const;
|
|
void permissions_set(std::vector<std::string> value);
|
|
|
|
static void Register(duk_context* ctx);
|
|
};
|
|
|
|
} // namespace OpenRCT2::Scripting
|
|
|
|
#endif
|