CGameInfo.cpp 741 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * CGameInfo.cpp, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #include "StdInc.h"
  11. #include "CGameInfo.h"
  12. #include "../lib/VCMI_Lib.h"
  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. }