1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-25 22:18:30 +02:00

Move editor functions to separate header

Editor functions now live in Editor.h, which is a new file - the
existing editor.h has been renamed to CustomLevels.h.
This commit is contained in:
Misa 2021-02-19 23:21:58 -08:00 committed by Misa Elizabeth Kai
parent 3e380e23fb
commit 6f0177ec04
3 changed files with 20 additions and 13 deletions

View File

@ -1,7 +1,7 @@
#if !defined(NO_CUSTOM_LEVELS) #if !defined(NO_CUSTOM_LEVELS)
#ifndef EDITOR_H #ifndef CUSTOMLEVELS_H
#define EDITOR_H #define CUSTOMLEVELS_H
#include <SDL.h> #include <SDL.h>
#include <string> #include <string>
@ -307,20 +307,10 @@ class editorclass{
int currentghosts; int currentghosts;
}; };
#if !defined(NO_EDITOR)
void editorrender(void);
void editorrenderfixed(void);
void editorlogic(void);
void editorinput(void);
#endif
#ifndef ED_DEFINITION #ifndef ED_DEFINITION
extern editorclass ed; extern editorclass ed;
#endif #endif
#endif /* EDITOR_H */ #endif /* CUSTOMLEVELS_H */
#endif /* NO_CUSTOM_LEVELS */ #endif /* NO_CUSTOM_LEVELS */

View File

@ -0,0 +1,16 @@
#if !defined(NO_CUSTOM_LEVELS) && !defined(NO_EDITOR)
#ifndef EDITOR_H
#define EDITOR_H
void editorrender(void);
void editorrenderfixed(void);
void editorlogic(void);
void editorinput(void);
#endif /* EDITOR_H */
#endif /* NO_CUSTOM_LEVELS and NO_EDITOR */

View File

@ -2,6 +2,7 @@
#include "CustomLevels.h" #include "CustomLevels.h"
#include "DeferCallbacks.h" #include "DeferCallbacks.h"
#include "Editor.h"
#include "Enums.h" #include "Enums.h"
#include "Entity.h" #include "Entity.h"
#include "Exit.h" #include "Exit.h"