neteja tidy a source/game (fixes d'arrel: BulletKind enum class, signatures, branches)
This commit is contained in:
+3
-3
@@ -44,17 +44,17 @@ Reescribiendo el código el 27/09/2022
|
||||
|
||||
#include "core/system/director.h"
|
||||
|
||||
SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[]) {
|
||||
auto SDL_AppInit(void **appstate, int argc, char *argv[]) -> SDL_AppResult {
|
||||
auto *director = new Director(argc, const_cast<const char **>(argv));
|
||||
*appstate = director;
|
||||
return SDL_APP_CONTINUE;
|
||||
}
|
||||
|
||||
SDL_AppResult SDL_AppIterate(void *appstate) {
|
||||
auto SDL_AppIterate(void *appstate) -> SDL_AppResult {
|
||||
return static_cast<Director *>(appstate)->iterate();
|
||||
}
|
||||
|
||||
SDL_AppResult SDL_AppEvent(void *appstate, SDL_Event *event) {
|
||||
auto SDL_AppEvent(void *appstate, SDL_Event *event) -> SDL_AppResult {
|
||||
return static_cast<Director *>(appstate)->handleEvent(event);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user