CGameInfo.cpp 743 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #include "StdInc.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 = nullptr;
  15. CGameInfo::CGameInfo()
  16. {
  17. generaltexth = nullptr;
  18. mh = nullptr;
  19. townh = nullptr;
  20. }
  21. void CGameInfo::setFromLib()
  22. {
  23. modh = VLC->modh;
  24. generaltexth = VLC->generaltexth;
  25. arth = VLC->arth;
  26. creh = VLC->creh;
  27. townh = VLC->townh;
  28. heroh = VLC->heroh;
  29. objh = VLC->objh;
  30. spellh = VLC->spellh;
  31. objtypeh = VLC->objtypeh;
  32. }