CGameInfo.cpp 686 B

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