CGameInfo.cpp 688 B

12345678910111213141516171819202122232425262728293031323334
  1. #include "../stdafx.h"
  2. #include "CGameInfo.h"
  3. #include "../lib/VCMI_Lib.h"
  4. /*
  5. * CGameInfo.cpp, part of VCMI engine
  6. *
  7. * Authors: listed in file AUTHORS in main folder
  8. *
  9. * License: GNU General Public License v2.0 or later
  10. * Full text of license available in license.txt file, in main folder
  11. *
  12. */
  13. const CGameInfo * CGI; //game info for general use
  14. CClientState * CCS;
  15. CGameInfo::CGameInfo()
  16. {
  17. mh = NULL;
  18. }
  19. void CGameInfo::setFromLib()
  20. {
  21. generaltexth = VLC->generaltexth;
  22. arth = VLC->arth;
  23. creh = VLC->creh;
  24. townh = VLC->townh;
  25. heroh = VLC->heroh;
  26. objh = VLC->objh;
  27. spellh = VLC->spellh;
  28. dobjinfo = VLC->dobjinfo;
  29. buildh = VLC->buildh;
  30. }