rewriting and organizing the code

This commit is contained in:
kin fuyuki 2025-12-20 22:52:42 -03:00
commit 20cb5a12f8
No known key found for this signature in database
GPG key ID: 0E4E8E519FB71401
17 changed files with 10766 additions and 32 deletions

View file

@ -0,0 +1 @@
#include "engine.h"

1
engine/src/program.cpp Normal file
View file

@ -0,0 +1 @@
#include "program.h"

14
engine/src/program.h Normal file
View file

@ -0,0 +1,14 @@
#pragma once
#define CFG this->CONF()
inline const char* COMMONCONFIG();
class program {
public:
program():client(false){}
program(bool isclient):client(isclient){}
virtual const char* CONF()=0;
const bool client;
virtual void boot()=0;
virtual void tick()=0;
virtual void draw()=0;
virtual void exit()=0;
};