mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
617e1f962e
* lib/ERMScriptModule.cpp * lib/ERMScriptModule.h * lib/CObstacleInstance.h More jugglery with callbacks. Moving stuff from CGameState to CGameInfoCallback. Work on unified game events interface for player (AI or GUI) and script module. Directing events to ERM interpretetr, first attempts of calling some triggers. Crashy, if there any scripts. Some other changes, including fighting amount of includes in includes and tracking of hero visits (need further work).
12 lines
271 B
C++
12 lines
271 B
C++
#pragma once
|
|
|
|
struct DLL_EXPORT CObstacleInstance
|
|
{
|
|
int uniqueID;
|
|
int ID; //ID of obstacle (defines type of it)
|
|
int pos; //position on battlefield
|
|
template <typename Handler> void serialize(Handler &h, const int version)
|
|
{
|
|
h & ID & pos & uniqueID;
|
|
}
|
|
}; |