1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01: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)
#ifndef EDITOR_H
#define EDITOR_H
#ifndef CUSTOMLEVELS_H
#define CUSTOMLEVELS_H
#include <SDL.h>
#include <string>
@ -307,20 +307,10 @@ class editorclass{
int currentghosts;
};
#if !defined(NO_EDITOR)
void editorrender(void);
void editorrenderfixed(void);
void editorlogic(void);
void editorinput(void);
#endif
#ifndef ED_DEFINITION
extern editorclass ed;
#endif
#endif /* EDITOR_H */
#endif /* CUSTOMLEVELS_H */
#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 "DeferCallbacks.h"
#include "Editor.h"
#include "Enums.h"
#include "Entity.h"
#include "Exit.h"