Advertisement
LxrdKxnny

ModuleInterface.h

May 6th, 2023
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.71 KB | None | 0 0
  1. #pragma once
  2.  
  3. class IModuleInterface
  4. {
  5. public:
  6.     /**
  7.      * Virtual destructor.
  8.      */
  9.     virtual ~IModuleInterface() = default;
  10. public:
  11.     /**
  12.      * Called after the module has been loaded.
  13.      */
  14.     virtual void StartupModule() = 0;
  15.  
  16.     /**
  17.      * Called before the module is unloaded.
  18.      */
  19.     virtual void ShutdownModule() = 0;
  20. public:
  21.     /**
  22.      * Gets the name of the module.
  23.      *
  24.      * @return The name of the module.
  25.      */
  26.     virtual const char* GetName() = 0;
  27. public:
  28.     /**
  29.      * Checks to see if the module is a game module.
  30.      *
  31.      * @return Whether or not the module is a game module.
  32.      */
  33.     virtual bool IsGameModule() const { return false; }
  34. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement