IHandlerBase.cpp 730 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * IHandlerBase.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 "IHandlerBase.h"
  12. #include "modding/IdentifierStorage.h"
  13. #include "modding/ModScope.h"
  14. #include "modding/CModHandler.h"
  15. VCMI_LIB_NAMESPACE_BEGIN
  16. std::string IHandlerBase::getScopeBuiltin()
  17. {
  18. return ModScope::scopeBuiltin();
  19. }
  20. void IHandlerBase::registerObject(const std::string & scope, const std::string & type_name, const std::string & name, si32 index)
  21. {
  22. return VLC->modh->getIdentifiers().registerObject(scope, type_name, name, index);
  23. }
  24. VCMI_LIB_NAMESPACE_END