reorder so it can compile
parent
2753d6921f
commit
aa5a27865d
|
@ -51,7 +51,7 @@ macro(blt_add_project name source type)
|
||||||
project(tower-defense)
|
project(tower-defense)
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
project(tower-defense VERSION 0.0.13)
|
project(tower-defense VERSION 0.0.14)
|
||||||
|
|
||||||
option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF)
|
option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF)
|
||||||
option(ENABLE_UBSAN "Enable the ub sanitizer" OFF)
|
option(ENABLE_UBSAN "Enable the ub sanitizer" OFF)
|
||||||
|
|
|
@ -32,16 +32,6 @@ namespace td
|
||||||
private:
|
private:
|
||||||
};
|
};
|
||||||
|
|
||||||
class event_t
|
|
||||||
{
|
|
||||||
event_handler_t handler;
|
|
||||||
std::string signature;
|
|
||||||
public:
|
|
||||||
void callHandler(void* target) { handler.call(target); }
|
|
||||||
private:
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
class event_handler_t
|
class event_handler_t
|
||||||
{
|
{
|
||||||
// I don't want to keep the parameter as a void pointer, maybe it would be nice to have a gameObject class or sumthing,
|
// I don't want to keep the parameter as a void pointer, maybe it would be nice to have a gameObject class or sumthing,
|
||||||
|
@ -55,6 +45,16 @@ namespace td
|
||||||
private:
|
private:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class event_t
|
||||||
|
{
|
||||||
|
event_handler_t handler;
|
||||||
|
std::string signature;
|
||||||
|
public:
|
||||||
|
void callHandler(void* target) { handler.call(target); }
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
class event_scheduler_t
|
class event_scheduler_t
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue