| 1 |
$#include "editor.h" |
| 2 |
|
| 3 |
enum EditorRunningType { |
| 4 |
EditorNotRunning = 0, /// Not Running |
| 5 |
EditorStarted = 1, /// Editor Enabled at all |
| 6 |
EditorCommandLine = 2, /// Called from Command Line |
| 7 |
EditorEditing = 4, /// Editor is fully running |
| 8 |
}; |
| 9 |
|
| 10 |
class CEditor |
| 11 |
{ |
| 12 |
vector<string> UnitTypes; |
| 13 |
const CUnitType *StartUnit; |
| 14 |
bool ShowTerrainFlags; |
| 15 |
EditorRunningType Running; |
| 16 |
|
| 17 |
void TileSelectedPatch(); |
| 18 |
}; |
| 19 |
|
| 20 |
// The C++ functions may have const std::string & parameters, but |
| 21 |
// don't tell tolua++ about the references, because it would ignore |
| 22 |
// the const and generate code to copy the modified strings to |
| 23 |
// additional Lua return values. |
| 24 |
|
| 25 |
extern void SetEditorSelectIcon(std::string icon); |
| 26 |
extern void SetEditorUnitsIcon(std::string icon); |
| 27 |
extern void SetEditorPatchIcon(std::string icon); |
| 28 |
extern void SetEditorStartUnit(std::string name); |
| 29 |
|
| 30 |
extern CEditor Editor; |
| 31 |
|
| 32 |
void StartEditor(std::string filename); |
| 33 |
int EditorSaveMap(std::string file); |
| 34 |
|
| 35 |
void StartPatchEditor(std::string patchName); |
| 36 |
|