forked from 0ad/0ad
janwas
dc027002c0
- input.cpp allows feeding in events from the outside (will be used by main.cpp and Atlas msg loop) - most of main.cpp split into ps/GameSetup.* - main.cpp is now a "controller" that drives the game via SDL events (Atlas is another such controller that can override main.cpp). it calls GameSetup functions to set up and processes messages. - add functions to import AtlasUI.dll automatically also, the usual refactoring ;) This was SVN commit r2622.
24 lines
499 B
C
Executable File
24 lines
499 B
C
Executable File
|
|
#ifndef _SCRIPTGLUE_H_
|
|
#define _SCRIPTGLUE_H_
|
|
|
|
#include "ScriptingHost.h"
|
|
|
|
// referenced by ScriptingHost.cpp
|
|
extern JSFunctionSpec ScriptFunctionTable[];
|
|
extern JSPropertySpec ScriptGlobalTable[];
|
|
|
|
// dependencies (moved to header to avoid L4 warnings)
|
|
// .. from main.cpp:
|
|
extern "C" int fps;
|
|
extern void kill_mainloop();
|
|
extern CStr g_CursorName;
|
|
extern void StartGame();
|
|
extern void EndGame();
|
|
// .. other
|
|
#if OS_WIN
|
|
extern int GetVRAMInfo(int&, int&);
|
|
#endif
|
|
|
|
#endif // #ifndef _SCRIPTGLUE_H_
|