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
|
|
|
|
*
|
|
|
|
*/
|
2017-07-13 10:26:03 +02:00
|
|
|
#include "StdInc.h"
|
|
|
|
#include "CGameInfo.h"
|
2017-09-05 13:31:34 +02:00
|
|
|
#include "../lib/CSkillHandler.h"
|
|
|
|
#include "../lib/CGeneralTextHandler.h"
|
2017-07-13 10:26:03 +02:00
|
|
|
|
|
|
|
#include "../lib/VCMI_Lib.h"
|
2009-04-15 17:03:31 +03:00
|
|
|
|
2018-01-05 19:21:07 +02:00
|
|
|
const CGameInfo * CGI;
|
2014-03-08 19:05:23 +03:00
|
|
|
CClientState * CCS = nullptr;
|
2018-01-05 19:21:07 +02:00
|
|
|
CServerHandler * CSH;
|
|
|
|
|
2009-01-11 00:08:18 +02:00
|
|
|
|
|
|
|
CGameInfo::CGameInfo()
|
|
|
|
{
|
2016-11-27 16:48:18 +02:00
|
|
|
generaltexth = nullptr;
|
2013-06-26 14:18:27 +03:00
|
|
|
mh = nullptr;
|
2016-11-27 16:48:18 +02:00
|
|
|
townh = 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;
|
2017-08-25 03:35:02 +02:00
|
|
|
skillh = VLC->skillh;
|
2014-05-16 23:50:02 +03:00
|
|
|
objtypeh = VLC->objtypeh;
|
2014-03-08 19:05:23 +03:00
|
|
|
}
|