rewriting and organizing the code
This commit is contained in:
parent
17799309a9
commit
20cb5a12f8
17 changed files with 10766 additions and 32 deletions
|
|
@ -1,14 +1,21 @@
|
|||
cmake_minimum_required(VERSION 3.20)
|
||||
|
||||
SET(CMAKE_CXX_FLAGS "-std=c++23")
|
||||
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}"
|
||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/built/forespend/${PLATFORM_DIR}/bin"
|
||||
)
|
||||
target_link_libraries(forespend PRIVATE engine raylib)
|
||||
target_include_directories(engine PUBLIC
|
||||
target_link_directories(
|
||||
forespend PUBLIC
|
||||
"${CMAKE_SOURCE_DIR}/link")
|
||||
target_link_libraries(forespend PRIVATE
|
||||
"${CMAKE_SOURCE_DIR}/link/libenginend.so"
|
||||
"${CMAKE_SOURCE_DIR}/link/libdesktopraylib.so"
|
||||
)
|
||||
target_include_directories(forespend PUBLIC
|
||||
${CMAKE_SOURCE_DIR}/include
|
||||
${CMAKE_SOURCE_DIR}/raylib/include
|
||||
${CMAKE_SOURCE_DIR}/lib/raylib/include
|
||||
${CMAKE_SOURCE_DIR}/engine/include
|
||||
)
|
||||
|
|
@ -1 +0,0 @@
|
|||
#include "program.h"
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
#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 +1,8 @@
|
|||
#include "server.h"
|
||||
#include "server.h"
|
||||
|
||||
server::server() {}
|
||||
|
||||
void server::boot() {}
|
||||
void server::draw() {}
|
||||
void server::exit() {}
|
||||
void server::tick() {}
|
||||
|
|
@ -1,8 +1,14 @@
|
|||
#pragma once
|
||||
|
||||
#include <incmgr.h>
|
||||
|
||||
class server : public program{
|
||||
public:
|
||||
static const char* CONF="server.tdf";
|
||||
server();
|
||||
const char* CONF() final{return "client.tdf";}
|
||||
|
||||
void boot() override;
|
||||
void tick() override;
|
||||
void draw() override;
|
||||
void exit() override;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue