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:
parent
3e380e23fb
commit
6f0177ec04
3 changed files with 20 additions and 13 deletions
|
@ -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 */
|
||||
|
|
16
desktop_version/src/Editor.h
Normal file
16
desktop_version/src/Editor.h
Normal 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 */
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include "CustomLevels.h"
|
||||
#include "DeferCallbacks.h"
|
||||
#include "Editor.h"
|
||||
#include "Enums.h"
|
||||
#include "Entity.h"
|
||||
#include "Exit.h"
|
||||
|
|
Loading…
Reference in a new issue