2011-12-14 00:23:17 +03:00
|
|
|
#include "StdInc.h"
|
2007-06-09 21:14:41 +03:00
|
|
|
#include "CGameInfo.h"
|
2011-12-14 00:23:17 +03:00
|
|
|
|
2009-05-20 13:08:56 +03:00
|
|
|
#include "../lib/VCMI_Lib.h"
|
2007-06-09 21:14:41 +03:00
|
|
|
|
2009-04-15 17:03:31 +03:00
|
|
|
/*
|
|
|
|
* CGameInfo.cpp, part of VCMI engine
|
|
|
|
*
|
|
|
|
* Authors: listed in file AUTHORS in main folder
|
|
|
|
*
|
|
|
|
* License: GNU General Public License v2.0 or later
|
|
|
|
* Full text of license available in license.txt file, in main folder
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2010-12-19 00:11:28 +02:00
|
|
|
const CGameInfo * CGI; //game info for general use
|
2014-03-08 19:05:23 +03:00
|
|
|
CClientState * CCS = nullptr;
|
2009-01-11 00:08:18 +02:00
|
|
|
|
|
|
|
CGameInfo::CGameInfo()
|
|
|
|
{
|
2013-06-26 14:18:27 +03:00
|
|
|
mh = nullptr;
|
2009-01-11 00:08:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CGameInfo::setFromLib()
|
|
|
|
{
|
2012-08-10 16:07:53 +03:00
|
|
|
modh = VLC->modh;
|
2009-01-11 00:08:18 +02:00
|
|
|
generaltexth = VLC->generaltexth;
|
|
|
|
arth = VLC->arth;
|
|
|
|
creh = VLC->creh;
|
|
|
|
townh = VLC->townh;
|
|
|
|
heroh = VLC->heroh;
|
|
|
|
objh = VLC->objh;
|
|
|
|
spellh = VLC->spellh;
|
2014-05-16 23:50:02 +03:00
|
|
|
objtypeh = VLC->objtypeh;
|
2014-03-08 19:05:23 +03:00
|
|
|
}
|