A modded EditSaber for making beat saber maps.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.1 KiB

  1. // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
  2. #pragma once
  3. #include "ModuleManager.h"
  4. class ZIPUTILITY_API FZipUtilityModule : public IModuleInterface
  5. {
  6. public:
  7. //CHN:
  8. //Maybe we need to use a public interface to fetch the module methods for C++? get a reference to zipfile etc
  9. /**
  10. * Singleton-like access to this module's interface. This is just for convenience!
  11. * Beware of calling this during the shutdown phase, though. Your module might have been unloaded already.
  12. *
  13. * @return Returns singleton instance, loading the module on demand if needed
  14. */
  15. static inline FZipUtilityModule& Get()
  16. {
  17. return FModuleManager::LoadModuleChecked< FZipUtilityModule >("ZipUtility");
  18. }
  19. /**
  20. * Checks to see if this module is loaded and ready. It is only valid to call Get() if IsAvailable() returns true.
  21. *
  22. * @return True if the module is loaded and ready to use
  23. */
  24. static inline bool IsAvailable()
  25. {
  26. return FModuleManager::Get().IsModuleLoaded("ZipUtility");
  27. }
  28. /** IModuleInterface implementation */
  29. virtual void StartupModule() override;
  30. virtual void ShutdownModule() override;
  31. };