rewriting and organizing the code
This commit is contained in:
commit
17799309a9
14 changed files with 626 additions and 0 deletions
14
games/forespend/CMakeLists.txt
Normal file
14
games/forespend/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
cmake_minimum_required(VERSION 3.20)
|
||||
|
||||
file(GLOB_RECURSE FORESPEND_SOURCES "src/*.cpp")
|
||||
add_executable(forespend ${FORESPEND_SOURCES})
|
||||
|
||||
set_target_properties(forespend PROPERTIES
|
||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/built/forespend/${PLATFORM_DIR}"
|
||||
)
|
||||
target_link_libraries(forespend PRIVATE engine raylib)
|
||||
target_include_directories(engine PUBLIC
|
||||
${CMAKE_SOURCE_DIR}/include
|
||||
${CMAKE_SOURCE_DIR}/raylib/include
|
||||
${CMAKE_SOURCE_DIR}/engine/include
|
||||
)
|
||||
1
games/forespend/src/common/program.cpp
Normal file
1
games/forespend/src/common/program.cpp
Normal file
|
|
@ -0,0 +1 @@
|
|||
#include "program.h"
|
||||
12
games/forespend/src/common/program.h
Normal file
12
games/forespend/src/common/program.h
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#pragma once
|
||||
|
||||
class program {
|
||||
public:
|
||||
virtual static const char* CONF;
|
||||
static const char* COMMONCONFIG="common.tdf";
|
||||
const bool client;
|
||||
virtual void boot();
|
||||
virtual void tick();
|
||||
virtual void draw();
|
||||
virtual void exit();
|
||||
};
|
||||
1
games/forespend/src/server/server.cpp
Normal file
1
games/forespend/src/server/server.cpp
Normal file
|
|
@ -0,0 +1 @@
|
|||
#include "server.h"
|
||||
8
games/forespend/src/server/server.h
Normal file
8
games/forespend/src/server/server.h
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#pragma once
|
||||
|
||||
|
||||
class server : public program{
|
||||
public:
|
||||
static const char* CONF="server.tdf";
|
||||
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue