(NDK) Added Velocity component/system
Former-commit-id: 427b7175fbf9723fcd1d54fc279b8b70167745d4
This commit is contained in:
28
SDK/include/NDK/Systems/VelocitySystem.hpp
Normal file
28
SDK/include/NDK/Systems/VelocitySystem.hpp
Normal file
@@ -0,0 +1,28 @@
|
||||
// Copyright (C) 2015 Jérôme Leclercq
|
||||
// This file is part of the "Nazara Development Kit"
|
||||
// For conditions of distribution and use, see copyright notice in Prerequesites.hpp
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef NDK_SYSTEMS_VELOCITYSYSTEM_HPP
|
||||
#define NDK_SYSTEMS_VELOCITYSYSTEM_HPP
|
||||
|
||||
#include <NDK/System.hpp>
|
||||
|
||||
namespace Ndk
|
||||
{
|
||||
class NDK_API VelocitySystem : public System<VelocitySystem>
|
||||
{
|
||||
public:
|
||||
VelocitySystem();
|
||||
~VelocitySystem() = default;
|
||||
|
||||
void Update(float elapsedTime);
|
||||
|
||||
static SystemIndex systemIndex;
|
||||
};
|
||||
}
|
||||
|
||||
#include <NDK/Systems/VelocitySystem.inl>
|
||||
|
||||
#endif // NDK_SYSTEMS_VELOCITYSYSTEM_HPP
|
||||
3
SDK/include/NDK/Systems/VelocitySystem.inl
Normal file
3
SDK/include/NDK/Systems/VelocitySystem.inl
Normal file
@@ -0,0 +1,3 @@
|
||||
// Copyright (C) 2015 Jérôme Leclercq
|
||||
// This file is part of the "Nazara Development Kit"
|
||||
// For conditions of distribution and use, see copyright notice in Prerequesites.hpp
|
||||
Reference in New Issue
Block a user