Move SDK include and source to base
This commit is contained in:
40
include/NazaraSDK/System.inl
Normal file
40
include/NazaraSDK/System.inl
Normal file
@@ -0,0 +1,40 @@
|
||||
// Copyright (C) 2017 Jérôme Leclercq
|
||||
// This file is part of the "Nazara Development Kit"
|
||||
// For conditions of distribution and use, see copyright notice in Prerequisites.hpp
|
||||
|
||||
#include <NazaraSDK/Algorithm.hpp>
|
||||
#include <type_traits>
|
||||
|
||||
namespace Ndk
|
||||
{
|
||||
/*!
|
||||
* \ingroup NDK
|
||||
* \class Ndk::System<SystemType>
|
||||
* \brief NDK class that represents a system which interacts on a world
|
||||
*
|
||||
* \remark This class is meant to be derived as CRTP: "System<Subtype>"
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \brief Constructs a System object by default
|
||||
*/
|
||||
|
||||
template<typename SystemType>
|
||||
System<SystemType>::System() :
|
||||
BaseSystem(GetSystemIndex<SystemType>())
|
||||
{
|
||||
}
|
||||
|
||||
template<typename SystemType>
|
||||
System<SystemType>::~System() = default;
|
||||
|
||||
/*!
|
||||
* \brief Registers the system by assigning it an index
|
||||
*/
|
||||
|
||||
template<typename SystemType>
|
||||
SystemIndex System<SystemType>::RegisterSystem()
|
||||
{
|
||||
return GetNextIndex();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user