CGameInfo.cpp 838 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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/CSkillHandler.h"
  13. #include "../lib/CGeneralTextHandler.h"
  14. #include "../lib/VCMI_Lib.h"
  15. const CGameInfo * CGI;
  16. CClientState * CCS = nullptr;
  17. CServerHandler * CSH;
  18. CGameInfo::CGameInfo()
  19. {
  20. generaltexth = nullptr;
  21. mh = nullptr;
  22. townh = nullptr;
  23. }
  24. void CGameInfo::setFromLib()
  25. {
  26. modh = VLC->modh;
  27. generaltexth = VLC->generaltexth;
  28. arth = VLC->arth;
  29. creh = VLC->creh;
  30. townh = VLC->townh;
  31. heroh = VLC->heroh;
  32. objh = VLC->objh;
  33. spellh = VLC->spellh;
  34. skillh = VLC->skillh;
  35. objtypeh = VLC->objtypeh;
  36. }