2011-12-13 21:23:17 +00:00
|
|
|
#include "StdInc.h"
|
2007-06-09 18:14:41 +00:00
|
|
|
#include "CGameInfo.h"
|
2011-12-13 21:23:17 +00:00
|
|
|
|
2009-05-20 10:08:56 +00:00
|
|
|
#include "../lib/VCMI_Lib.h"
|
2007-06-09 18:14:41 +00:00
|
|
|
|
2009-04-15 14:03:31 +00: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-18 22:11:28 +00:00
|
|
|
const CGameInfo * CGI; //game info for general use
|
2014-03-08 16:05:23 +00:00
|
|
|
CClientState * CCS = nullptr;
|
2009-01-10 22:08:18 +00:00
|
|
|
|
|
|
|
CGameInfo::CGameInfo()
|
|
|
|
{
|
2013-06-26 11:18:27 +00:00
|
|
|
mh = nullptr;
|
2009-01-10 22:08:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void CGameInfo::setFromLib()
|
|
|
|
{
|
2012-08-10 13:07:53 +00:00
|
|
|
modh = VLC->modh;
|
2009-01-10 22:08:18 +00: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 16:05:23 +00:00
|
|
|
}
|