mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 21:13:05 +01:00
Move some game actions logic from header to source (#13571)
* Moving all definitions from B...Actions to source * Moving all definitions from C...Actions to source * Moving all definitions from F...Actions to source * Moving all definitions from G...Actions to source * Moving all definitions from L...Actions to source * Moving all definitions from M...Actions to source * Moving all definitions from N...Actions to source * Moving all definitions from P...Actions to source
This commit is contained in:
@@ -12,6 +12,21 @@
|
||||
#include "../network/network.h"
|
||||
#include "../util/Util.h"
|
||||
|
||||
NetworkModifyGroupAction::NetworkModifyGroupAction(
|
||||
ModifyGroupType type, uint8_t groupId, const std::string name, uint32_t permissionIndex, PermissionState permissionState)
|
||||
: _type(type)
|
||||
, _groupId(groupId)
|
||||
, _name(name)
|
||||
, _permissionIndex(permissionIndex)
|
||||
, _permissionState(permissionState)
|
||||
{
|
||||
}
|
||||
|
||||
uint16_t NetworkModifyGroupAction::GetActionFlags() const
|
||||
{
|
||||
return GameAction::GetActionFlags() | GameActions::Flags::AllowWhilePaused;
|
||||
}
|
||||
|
||||
void NetworkModifyGroupAction::Serialise(DataSerialiser& stream)
|
||||
{
|
||||
GameAction::Serialise(stream);
|
||||
|
||||
Reference in New Issue
Block a user