More Progress
This commit is contained in:
13
src/dawnpokergame/CMakeLists.txt
Normal file
13
src/dawnpokergame/CMakeLists.txt
Normal file
@ -0,0 +1,13 @@
|
||||
# Copyright (c) 2022 Dominic Masters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
# Set up the executable
|
||||
set(DAWN_TARGET_NAME "PokerGame" CACHE INTERNAL ${DAWN_CACHE_TARGET})
|
||||
|
||||
# Build Project
|
||||
add_executable(${DAWN_TARGET_NAME})
|
||||
|
||||
# Subdirs
|
||||
add_subdirectory(game)
|
10
src/dawnpokergame/game/CMakeLists.txt
Normal file
10
src/dawnpokergame/game/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
|
||||
DawnPokerGame.cpp
|
||||
)
|
32
src/dawnpokergame/game/DawnPokerGame.cpp
Normal file
32
src/dawnpokergame/game/DawnPokerGame.cpp
Normal file
@ -0,0 +1,32 @@
|
||||
// Copyright (c) 2022 Dominic Masters
|
||||
//
|
||||
// This software is released under the MIT License.
|
||||
// https://opensource.org/licenses/MIT
|
||||
|
||||
#include "DawnPokerGame.hpp"
|
||||
|
||||
using namespace Dawn;
|
||||
|
||||
DawnGame::DawnGame(std::weak_ptr<DawnHost> host) :
|
||||
renderManager(weak_from_this())
|
||||
{
|
||||
this->host = host;
|
||||
}
|
||||
|
||||
int32_t DawnGame::init() {
|
||||
this->renderManager.init();
|
||||
|
||||
this->scene = std::make_unique<Scene>(weak_from_this());
|
||||
|
||||
return DAWN_GAME_INIT_RESULT_SUCCESS;
|
||||
}
|
||||
|
||||
int32_t DawnGame::update(float_t delta) {
|
||||
this->renderManager.update();
|
||||
|
||||
return DAWN_GAME_UPDATE_RESULT_SUCCESS;
|
||||
}
|
||||
|
||||
DawnGame::~DawnGame() {
|
||||
|
||||
}
|
7
src/dawnpokergame/game/DawnPokerGame.hpp
Normal file
7
src/dawnpokergame/game/DawnPokerGame.hpp
Normal file
@ -0,0 +1,7 @@
|
||||
// Copyright (c) 2022 Dominic Masters
|
||||
//
|
||||
// This software is released under the MIT License.
|
||||
// https://opensource.org/licenses/MIT
|
||||
|
||||
#pragma once
|
||||
#include "game/DawnGame.hpp"
|
Reference in New Issue
Block a user