forked from 0ad/0ad
Ykkrosh
d605cb39ec
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.
25 lines
393 B
C++
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__
|