mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-22 23:33:04 +01:00
Pack nested namespaces together
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
#include <openrct2/interface/Cursors.h>
|
||||
#include "CursorRepository.h"
|
||||
|
||||
namespace OpenRCT2 { namespace Ui
|
||||
namespace OpenRCT2::Ui
|
||||
{
|
||||
static constexpr const CursorData BlankCursorData =
|
||||
{
|
||||
@@ -664,4 +664,4 @@ namespace OpenRCT2 { namespace Ui
|
||||
}
|
||||
return result;
|
||||
}
|
||||
} }
|
||||
}
|
||||
|
||||
@@ -23,10 +23,8 @@
|
||||
|
||||
struct SDL_Cursor;
|
||||
|
||||
namespace OpenRCT2
|
||||
namespace OpenRCT2::Ui
|
||||
{
|
||||
namespace Ui
|
||||
{
|
||||
class CursorRepository
|
||||
{
|
||||
private:
|
||||
@@ -77,5 +75,4 @@ namespace OpenRCT2
|
||||
void GenerateScaledCursorSetHolder(uint8 scale);
|
||||
static const CursorData * GetCursorData(CURSOR_ID cursorId);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,10 +20,8 @@
|
||||
|
||||
union SDL_Event;
|
||||
|
||||
namespace OpenRCT2
|
||||
namespace OpenRCT2::Ui
|
||||
{
|
||||
namespace Ui
|
||||
{
|
||||
/**
|
||||
* Represents a
|
||||
*/
|
||||
@@ -54,5 +52,4 @@ namespace OpenRCT2
|
||||
void Delete();
|
||||
void RecalculateLength();
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
|
||||
#include <SDL.h>
|
||||
|
||||
namespace OpenRCT2 { namespace Ui
|
||||
{
|
||||
namespace OpenRCT2::Ui
|
||||
{
|
||||
|
||||
class AndroidContext final : public IPlatformUiContext
|
||||
{
|
||||
@@ -74,6 +74,6 @@ namespace OpenRCT2 { namespace Ui
|
||||
{
|
||||
return new AndroidContext();
|
||||
}
|
||||
} }
|
||||
}
|
||||
|
||||
#endif // __ANDROID__
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
#include <SDL.h>
|
||||
|
||||
namespace OpenRCT2 { namespace Ui
|
||||
namespace OpenRCT2::Ui
|
||||
{
|
||||
enum class DIALOG_TYPE
|
||||
{
|
||||
@@ -385,6 +385,6 @@ namespace OpenRCT2 { namespace Ui
|
||||
{
|
||||
return new LinuxContext();
|
||||
}
|
||||
} }
|
||||
}
|
||||
|
||||
#endif // __linux__ || __OpenBSD__
|
||||
|
||||
@@ -54,7 +54,7 @@ static std::wstring SHGetPathFromIDListLongPath(LPCITEMIDLIST pidl)
|
||||
return pszPath;
|
||||
}
|
||||
|
||||
namespace OpenRCT2 { namespace Ui
|
||||
namespace OpenRCT2::Ui
|
||||
{
|
||||
class Win32Context : public IPlatformUiContext
|
||||
{
|
||||
@@ -224,6 +224,6 @@ namespace OpenRCT2 { namespace Ui
|
||||
{
|
||||
return new Win32Context();
|
||||
}
|
||||
} }
|
||||
}
|
||||
|
||||
#endif // _WIN32
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include <SDL.h>
|
||||
|
||||
namespace OpenRCT2 { namespace Ui
|
||||
namespace OpenRCT2::Ui
|
||||
{
|
||||
class macOSContext final : public IPlatformUiContext
|
||||
{
|
||||
@@ -182,6 +182,6 @@ namespace OpenRCT2 { namespace Ui
|
||||
{
|
||||
return new macOSContext();
|
||||
}
|
||||
} }
|
||||
}
|
||||
|
||||
#endif // __APPLE__ && __MACH__
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
|
||||
#include <openrct2/common.h>
|
||||
|
||||
namespace OpenRCT2 { namespace Ui
|
||||
namespace OpenRCT2::Ui
|
||||
{
|
||||
interface IWindowManager;
|
||||
|
||||
IWindowManager * CreateWindowManager();
|
||||
} }
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include "AudioContext.h"
|
||||
#include "AudioFormat.h"
|
||||
|
||||
namespace OpenRCT2 { namespace Audio
|
||||
namespace OpenRCT2::Audio
|
||||
{
|
||||
class AudioChannelImpl : public ISDLAudioChannel
|
||||
{
|
||||
@@ -295,4 +295,4 @@ namespace OpenRCT2 { namespace Audio
|
||||
{
|
||||
return new (std::nothrow) AudioChannelImpl();
|
||||
}
|
||||
} }
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include "../SDLException.h"
|
||||
#include "AudioContext.h"
|
||||
|
||||
namespace OpenRCT2 { namespace Audio
|
||||
namespace OpenRCT2::Audio
|
||||
{
|
||||
class AudioContext : public IAudioContext
|
||||
{
|
||||
@@ -98,4 +98,4 @@ namespace OpenRCT2 { namespace Audio
|
||||
{
|
||||
return new AudioContext();
|
||||
}
|
||||
} }
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
struct SDL_RWops;
|
||||
using SpeexResamplerState = struct SpeexResamplerState_;
|
||||
|
||||
namespace OpenRCT2 { namespace Audio
|
||||
namespace OpenRCT2::Audio
|
||||
{
|
||||
struct AudioFormat;
|
||||
interface IAudioContext;
|
||||
@@ -70,4 +70,4 @@ namespace OpenRCT2 { namespace Audio
|
||||
}
|
||||
|
||||
IAudioContext * CreateAudioContext();
|
||||
} }
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <openrct2/common.h>
|
||||
#include <SDL2/SDL.h>
|
||||
|
||||
namespace OpenRCT2 { namespace Audio
|
||||
namespace OpenRCT2::Audio
|
||||
{
|
||||
/**
|
||||
* Represents the size, frequency and number of channels for
|
||||
@@ -53,4 +53,4 @@ namespace OpenRCT2 { namespace Audio
|
||||
{
|
||||
return !(lhs == rhs);
|
||||
}
|
||||
} }
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#include <openrct2/OpenRCT2.h>
|
||||
#include <openrct2/platform/platform.h>
|
||||
|
||||
namespace OpenRCT2 { namespace Audio
|
||||
namespace OpenRCT2::Audio
|
||||
{
|
||||
class AudioMixerImpl final : public IAudioMixer
|
||||
{
|
||||
@@ -513,4 +513,4 @@ namespace OpenRCT2 { namespace Audio
|
||||
{
|
||||
return new AudioMixerImpl();
|
||||
}
|
||||
} }
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include "AudioContext.h"
|
||||
#include "AudioFormat.h"
|
||||
|
||||
namespace OpenRCT2 { namespace Audio
|
||||
namespace OpenRCT2::Audio
|
||||
{
|
||||
/**
|
||||
* An audio source where raw PCM data is streamed directly from
|
||||
@@ -207,4 +207,4 @@ namespace OpenRCT2 { namespace Audio
|
||||
}
|
||||
return source;
|
||||
}
|
||||
} }
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include "AudioContext.h"
|
||||
#include "AudioFormat.h"
|
||||
|
||||
namespace OpenRCT2 { namespace Audio
|
||||
namespace OpenRCT2::Audio
|
||||
{
|
||||
/**
|
||||
* An audio source where raw PCM data is initially loaded into RAM from
|
||||
@@ -243,4 +243,4 @@ namespace OpenRCT2 { namespace Audio
|
||||
}
|
||||
return source;
|
||||
}
|
||||
} }
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <openrct2/interface/Console.h>
|
||||
|
||||
namespace OpenRCT2 { namespace Ui
|
||||
namespace OpenRCT2::Ui
|
||||
{
|
||||
class InGameConsole final : public InteractiveConsole
|
||||
{
|
||||
@@ -53,4 +53,4 @@ namespace OpenRCT2 { namespace Ui
|
||||
void Invalidate() const;
|
||||
sint32 GetNumVisibleLines() const;
|
||||
};
|
||||
} }
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#include "../common.h"
|
||||
|
||||
namespace OpenRCT2 { namespace Audio
|
||||
namespace OpenRCT2::Audio
|
||||
{
|
||||
interface IAudioSource;
|
||||
|
||||
@@ -73,4 +73,4 @@ namespace OpenRCT2 { namespace Audio
|
||||
|
||||
virtual size_t Read(void * dst, size_t len) abstract;
|
||||
};
|
||||
} }
|
||||
}
|
||||
|
||||
@@ -20,10 +20,8 @@
|
||||
#include <vector>
|
||||
#include "../common.h"
|
||||
|
||||
namespace OpenRCT2
|
||||
namespace OpenRCT2::Audio
|
||||
{
|
||||
namespace Audio
|
||||
{
|
||||
interface IAudioChannel;
|
||||
interface IAudioMixer;
|
||||
interface IAudioSource;
|
||||
@@ -62,5 +60,4 @@ namespace OpenRCT2
|
||||
};
|
||||
|
||||
IAudioContext * CreateDummyAudioContext();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ enum MIXER_GROUP
|
||||
MIXER_GROUP_TITLE_MUSIC,
|
||||
};
|
||||
|
||||
namespace OpenRCT2 { namespace Audio
|
||||
namespace OpenRCT2::Audio
|
||||
{
|
||||
interface IAudioSource;
|
||||
interface IAudioChannel;
|
||||
@@ -53,7 +53,7 @@ namespace OpenRCT2 { namespace Audio
|
||||
virtual IAudioSource * GetSoundSource(sint32 id) abstract;
|
||||
virtual IAudioSource * GetMusicSource(sint32 id) abstract;
|
||||
};
|
||||
} }
|
||||
}
|
||||
|
||||
#ifndef DSBPAN_LEFT
|
||||
#define DSBPAN_LEFT -10000
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include "../common.h"
|
||||
#include "AudioMixer.h"
|
||||
|
||||
namespace OpenRCT2 { namespace Audio
|
||||
namespace OpenRCT2::Audio
|
||||
{
|
||||
/**
|
||||
* Represents a readable source of audio PCM data.
|
||||
@@ -37,4 +37,4 @@ namespace OpenRCT2 { namespace Audio
|
||||
{
|
||||
IAudioSource * CreateNull();
|
||||
}
|
||||
} }
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
#include "AudioContext.h"
|
||||
|
||||
namespace OpenRCT2 { namespace Audio
|
||||
namespace OpenRCT2::Audio
|
||||
{
|
||||
class DummyAudioContext final : public IAudioContext
|
||||
{
|
||||
@@ -49,4 +49,4 @@ namespace OpenRCT2 { namespace Audio
|
||||
{
|
||||
return new DummyAudioContext();
|
||||
}
|
||||
} }
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
#include "AudioSource.h"
|
||||
|
||||
namespace OpenRCT2 { namespace Audio
|
||||
namespace OpenRCT2::Audio
|
||||
{
|
||||
/**
|
||||
* An audio source representing silence.
|
||||
@@ -39,4 +39,4 @@ namespace OpenRCT2 { namespace Audio
|
||||
{
|
||||
return new NullAudioSource();
|
||||
}
|
||||
} }
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
#include "Drawing.h"
|
||||
|
||||
namespace OpenRCT2 { namespace Drawing
|
||||
namespace OpenRCT2::Drawing
|
||||
{
|
||||
interface IDrawingEngine;
|
||||
|
||||
@@ -39,4 +39,4 @@ namespace OpenRCT2 { namespace Drawing
|
||||
virtual void DrawSpriteSolid(uint32 image, sint32 x, sint32 y, uint8 colour) abstract;
|
||||
virtual void DrawGlyph(uint32 image, sint32 x, sint32 y, uint8 * palette) abstract;
|
||||
};
|
||||
} }
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ enum DRAWING_ENGINE_FLAGS
|
||||
struct rct_drawpixelinfo;
|
||||
struct rct_palette_entry;
|
||||
|
||||
namespace OpenRCT2 { namespace Drawing
|
||||
namespace OpenRCT2::Drawing
|
||||
{
|
||||
interface IDrawingContext;
|
||||
|
||||
@@ -80,4 +80,4 @@ namespace OpenRCT2 { namespace Drawing
|
||||
sint32 xStart,
|
||||
sint32 yStart) abstract;
|
||||
};
|
||||
} }
|
||||
}
|
||||
|
||||
@@ -20,9 +20,9 @@
|
||||
|
||||
struct rct_drawpixelinfo;
|
||||
|
||||
namespace OpenRCT2 { namespace Drawing
|
||||
namespace OpenRCT2::Drawing
|
||||
{
|
||||
interface IRainDrawer;
|
||||
} }
|
||||
}
|
||||
|
||||
void DrawRain(rct_drawpixelinfo * dpi, OpenRCT2::Drawing::IRainDrawer * rainDrawer);
|
||||
|
||||
@@ -51,7 +51,7 @@ enum CURSOR_ID
|
||||
CURSOR_COUNT,
|
||||
};
|
||||
|
||||
namespace OpenRCT2 { namespace Ui
|
||||
namespace OpenRCT2::Ui
|
||||
{
|
||||
constexpr size_t CURSOR_BIT_WIDTH = 32;
|
||||
constexpr size_t CURSOR_HEIGHT = 4;
|
||||
@@ -65,4 +65,4 @@ namespace OpenRCT2 { namespace Ui
|
||||
uint8 Data[CURSOR_BIT_WIDTH * CURSOR_HEIGHT];
|
||||
uint8 Mask[CURSOR_BIT_WIDTH * CURSOR_HEIGHT];
|
||||
};
|
||||
} }
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
using namespace OpenRCT2::Drawing;
|
||||
|
||||
namespace OpenRCT2 { namespace Ui
|
||||
namespace OpenRCT2::Ui
|
||||
{
|
||||
/**
|
||||
* Represents the window or screen that OpenRCT2 is presented on.
|
||||
@@ -96,4 +96,4 @@ namespace OpenRCT2 { namespace Ui
|
||||
{
|
||||
return new DummyUiContext();
|
||||
}
|
||||
} }
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
#include "WindowManager.h"
|
||||
|
||||
namespace OpenRCT2 { namespace Ui
|
||||
namespace OpenRCT2::Ui
|
||||
{
|
||||
class DummyWindowManager final : public IWindowManager
|
||||
{
|
||||
@@ -38,4 +38,4 @@ namespace OpenRCT2 { namespace Ui
|
||||
{
|
||||
return new DummyWindowManager();
|
||||
}
|
||||
} }
|
||||
}
|
||||
|
||||
@@ -22,10 +22,8 @@
|
||||
|
||||
#include "../interface/Window.h"
|
||||
|
||||
namespace OpenRCT2
|
||||
namespace OpenRCT2::Ui
|
||||
{
|
||||
namespace Ui
|
||||
{
|
||||
/**
|
||||
* Manager of in-game windows and widgets.
|
||||
*/
|
||||
@@ -47,5 +45,4 @@ namespace OpenRCT2
|
||||
};
|
||||
|
||||
IWindowManager * CreateDummyWindowManager();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user