Added Time
This commit is contained in:
11
TSE_Core/src/interfaces/ITimeInterface.hpp
Normal file
11
TSE_Core/src/interfaces/ITimeInterface.hpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
namespace TSE
|
||||
{
|
||||
class ITimeInterface
|
||||
{
|
||||
public:
|
||||
virtual float GetTotalEllapsedTime() = 0;
|
||||
virtual ~ITimeInterface() = default;
|
||||
};
|
||||
} // namespace TSE
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "IWindow.hpp"
|
||||
#include "Debug.hpp"
|
||||
#include "LuaStateHandler.hpp"
|
||||
#include "Time.hpp"
|
||||
|
||||
TSE::IWindow* TSE::IWindow::lastWindow = nullptr;
|
||||
|
||||
@@ -10,6 +11,11 @@ bool TSE::IWindow::BaseInit() const
|
||||
Debug::Init();
|
||||
}
|
||||
|
||||
void TSE::IWindow::BaseUpdate() const
|
||||
{
|
||||
Time::Update();
|
||||
}
|
||||
|
||||
TSE::IWindow::~IWindow()
|
||||
{
|
||||
Debug::Close();
|
||||
|
||||
@@ -20,6 +20,7 @@ namespace TSE
|
||||
virtual bool ShouldClose() const = 0;
|
||||
|
||||
bool BaseInit() const;
|
||||
void BaseUpdate() const;
|
||||
~IWindow();
|
||||
};
|
||||
} // namespace TSE
|
||||
|
||||
Reference in New Issue
Block a user