2021-01-27 12:38:03 +01:00
|
|
|
#pragma once
|
2021-01-27 17:33:49 +01:00
|
|
|
#include "../../helper/audio/audio.hpp"
|
2021-01-28 18:16:23 +01:00
|
|
|
#include "../../helper/events/eventhandler.hpp"
|
2021-01-27 12:38:03 +01:00
|
|
|
#include "../../ui/ui.hpp"
|
|
|
|
#include "../config/config.hpp"
|
2021-01-28 18:16:23 +01:00
|
|
|
#include "objects.hpp"
|
|
|
|
|
2021-01-27 12:38:03 +01:00
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
namespace Soundux
|
|
|
|
{
|
|
|
|
namespace Globals
|
|
|
|
{
|
|
|
|
inline Objects::Data gData;
|
2021-01-27 17:33:49 +01:00
|
|
|
inline Objects::Audio gAudio;
|
2021-01-27 12:38:03 +01:00
|
|
|
inline Objects::Config gConfig;
|
|
|
|
inline Objects::Settings gSettings;
|
2021-01-28 18:16:23 +01:00
|
|
|
inline Objects::EventHandler gEvents;
|
2021-01-27 12:38:03 +01:00
|
|
|
inline std::shared_ptr<Objects::Window> gGui;
|
|
|
|
|
|
|
|
/* Allows for fast & easy sound access, is populated on start up */
|
|
|
|
inline std::map<std::uint32_t, std::reference_wrapper<Objects::Sound>> gSounds;
|
|
|
|
} // namespace Globals
|
|
|
|
} // namespace Soundux
|