common.cpp 428 B

1234567891011121314151617181920212223
  1. /*
  2. * common.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 "common.h"
  12. std::shared_ptr<CBattleCallback> cbc;
  13. void setCbc(std::shared_ptr<CBattleCallback> cb)
  14. {
  15. cbc = cb;
  16. }
  17. std::shared_ptr<CBattleCallback> getCbc()
  18. {
  19. return cbc;
  20. }