1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00
vcmi/lib/ERMScriptModule.h
Michał W. Urbańczyk 9775f88045 Version bump.
Initial support for IF:M elements and string formatting.
Various minor changes related to ERM interpreter.

The following script should be functional now:
ZVSE
!?PI;
!!DO1/0/6/1&v2777<>1:P0;

!?FU1;
!!IF:M^Hello world number %X16!^;
2011-06-10 23:50:32 +00:00

23 lines
605 B
C++

#pragma once
#include "../global.h"
#include "IGameEventsReceiver.h"
#include "IGameCallback.h"
class IGameEventRealizer;
class ERMInterpreter;
class DLL_EXPORT CScriptingModule : public IGameEventsReceiver, public IBattleEventsReceiver
{
public:
virtual void executeUserCommand(const std::string &cmd){};
virtual void init(){}; //called upon the start of game (after map randomization, before first turn)
virtual ~CScriptingModule();
};
extern DLL_EXPORT IGameEventRealizer *acb;
extern DLL_EXPORT CPrivilagedInfoCallback *icb;
DLL_EXPORT CScriptingModule *getERMModule();