0ad/source/tools/atlas/AtlasUI/General/AtlasEventLoop.h
Ykkrosh d605cb39ec # Atlas editor: Control over 'random' actor variations.
Actor variation selection (though not saved to maps, so not very
useful).
Added more levels of complexity to the waiting-for-game-to-respond
message pump, to fix reentrancy problems.
Use number keys to assign player to selected unit.

This was SVN commit r3913.
2006-05-31 05:27:02 +00:00

25 lines
393 B
C++

#ifndef ATLASEVENTLOOP_H__
#define ATLASEVENTLOOP_H__
#include "wx/evtloop.h"
struct tagMSG;
// See ScenarioEditor.cpp's QueryCallback for explanation
class AtlasEventLoop : public wxEventLoop
{
std::vector<tagMSG*> m_Messages;
bool m_NeedsPaint;
public:
AtlasEventLoop();
void AddMessage(tagMSG* msg);
void NeedsPaint();
virtual bool Dispatch();
};
#endif // ATLASEVENTLOOP_H__