Platform.h 897 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
  3. // LICENSE: Atomic Game Engine Editor and Tools EULA
  4. // Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for
  5. // license information: https://github.com/AtomicGameEngine/AtomicGameEngine
  6. //
  7. #pragma once
  8. #include <Atomic/Core/Object.h>
  9. using namespace Atomic;
  10. namespace ToolCore
  11. {
  12. class BuildBase;
  13. class Project;
  14. enum PlatformID
  15. {
  16. PLATFORMID_UNDEFINED,
  17. PLATFORMID_WINDOWS,
  18. PLATFORMID_MAC,
  19. PLATFORMID_ANDROID,
  20. PLATFORMID_IOS,
  21. PLATFORMID_WEB
  22. };
  23. class Platform : public Object
  24. {
  25. OBJECT(Platform);
  26. public:
  27. Platform(Context* context);
  28. virtual ~Platform();
  29. virtual bool GetLicense() = 0;
  30. virtual String GetName() = 0;
  31. virtual PlatformID GetPlatformID() = 0;
  32. virtual BuildBase* NewBuild(Project* project) = 0;
  33. private:
  34. bool validLicense_;
  35. };
  36. }