Just roughing physics
This commit is contained in:
10
src/dawn/physics/CMakeLists.txt
Normal file
10
src/dawn/physics/CMakeLists.txt
Normal file
@ -0,0 +1,10 @@
|
||||
# Copyright (c) 2023 Dominic Masters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
# Sources
|
||||
target_sources(${DAWN_TARGET_NAME}
|
||||
PRIVATE
|
||||
PhysicsManager.cpp
|
||||
)
|
13
src/dawn/physics/PhysicsManager.cpp
Normal file
13
src/dawn/physics/PhysicsManager.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
// Copyright (c) 2023 Dominic Masters
|
||||
//
|
||||
// This software is released under the MIT License.
|
||||
// https://opensource.org/licenses/MIT
|
||||
|
||||
#include "PhysicsManager.hpp"
|
||||
#include "game/DawnGame.hpp"
|
||||
|
||||
using namespace Dawn;
|
||||
|
||||
PhysicsManager::PhysicsManager(DawnGame *game) {
|
||||
this->game = game;
|
||||
}
|
17
src/dawn/physics/PhysicsManager.hpp
Normal file
17
src/dawn/physics/PhysicsManager.hpp
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright (c) 2023 Dominic Masters
|
||||
//
|
||||
// This software is released under the MIT License.
|
||||
// https://opensource.org/licenses/MIT
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace Dawn {
|
||||
class DawnGame;
|
||||
|
||||
class PhysicsManager {
|
||||
public:
|
||||
DawnGame *game;
|
||||
|
||||
PhysicsManager(DawnGame *game);
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user