Rework modules

This commit is contained in:
Jérôme Leclercq
2020-09-10 20:12:09 +02:00
parent 385927b05a
commit a7fac3beb8
31 changed files with 568 additions and 787 deletions

View File

@@ -8,25 +8,24 @@
#define NAZARA_MODULENAME_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Core/Core.hpp>
#include <Nazara/Network/Config.hpp>
namespace Nz
{
class NAZARA_NETWORK_API Network
class NAZARA_NETWORK_API Network : public Module<Network>
{
friend Module;
public:
Network() = delete;
~Network() = delete;
using Dependencies = TypeList<Core>;
static bool Initialize();
static bool IsInitialized();
static void Uninitialize();
Network();
~Network();
private:
static unsigned int s_moduleReferenceCounter;
};
static Network* s_instance;
};
}
#endif // NAZARA_MODULENAME_HPP