Platforms.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. namespace ProjectSettingsTool
  10. {
  11. enum class PlatformId
  12. {
  13. Base,
  14. Android,
  15. Ios,
  16. NumPlatformIds
  17. };
  18. enum class PlatformDataType
  19. {
  20. ProjectJson, //!< Data comes from global project.json file
  21. PlatformResource, //!< Data comes from another file, which can have different formats (json or plist)
  22. NumPlatformDataTypes
  23. };
  24. struct Platform
  25. {
  26. PlatformId m_id;
  27. PlatformDataType m_type;
  28. };
  29. const Platform Platforms[static_cast<unsigned>(PlatformId::NumPlatformIds)]
  30. {
  31. Platform{ PlatformId::Base, PlatformDataType::ProjectJson },
  32. Platform{ PlatformId::Android, PlatformDataType::PlatformResource },
  33. Platform{ PlatformId::Ios, PlatformDataType::PlatformResource }
  34. };
  35. } // namespace ProjectSettingsTool