Added basic prefabs finally
This commit is contained in:
@ -18,4 +18,5 @@ target_include_directories(${DAWN_TARGET_NAME}
|
||||
|
||||
# Subdirs
|
||||
add_subdirectory(host)
|
||||
add_subdirectory(input)
|
||||
add_subdirectory(input)
|
||||
add_subdirectory(time)
|
10
src/dawnglfw/time/CMakeLists.txt
Normal file
10
src/dawnglfw/time/CMakeLists.txt
Normal file
@ -0,0 +1,10 @@
|
||||
# Copyright (c) 2022 Dominic Masters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
# Sources
|
||||
target_sources(${DAWN_TARGET_NAME}
|
||||
PRIVATE
|
||||
TimeManager.cpp
|
||||
)
|
16
src/dawnglfw/time/TimeManager.cpp
Normal file
16
src/dawnglfw/time/TimeManager.cpp
Normal file
@ -0,0 +1,16 @@
|
||||
// Copyright (c) 2022 Dominic Masters
|
||||
//
|
||||
// This software is released under the MIT License.
|
||||
// https://opensource.org/licenses/MIT
|
||||
|
||||
#include "TimeManager.hpp"
|
||||
|
||||
using namespace Dawn;
|
||||
|
||||
TimeManager::TimeManager() : ITimeManager() {
|
||||
|
||||
}
|
||||
|
||||
int64_t TimeManager::getTimestamp() {
|
||||
return (int64_t)std::time(nullptr);
|
||||
}
|
15
src/dawnglfw/time/TimeManager.hpp
Normal file
15
src/dawnglfw/time/TimeManager.hpp
Normal file
@ -0,0 +1,15 @@
|
||||
// Copyright (c) 2022 Dominic Masters
|
||||
//
|
||||
// This software is released under the MIT License.
|
||||
// https://opensource.org/licenses/MIT
|
||||
|
||||
#pragma once
|
||||
#include "time/ITimeManager.hpp"
|
||||
|
||||
namespace Dawn {
|
||||
class TimeManager : public ITimeManager {
|
||||
public:
|
||||
TimeManager();
|
||||
int64_t getTimestamp() override;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user