config.vala 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * Copyright (c) 2012-2025 Daniele Bartolini et al.
  3. * SPDX-License-Identifier: GPL-3.0-or-later
  4. */
  5. namespace Crown
  6. {
  7. const string CROWN_VERSION = "0.57.0";
  8. const string CROWN_WWW_URL = "https://www.crownengine.org";
  9. const string CROWN_DOCS_URL = "https://docs.crownengine.org";
  10. const string CROWN_LATEST_DOCS_URL = CROWN_DOCS_URL + "/html/v" + CROWN_VERSION;
  11. const string CROWN_LATEST_CHANGELOG_URL = CROWN_LATEST_DOCS_URL + "/changelog.html#changelog";
  12. const string CROWN_FUND_URL = CROWN_WWW_URL + "/fund";
  13. #if CROWN_PLATFORM_LINUX
  14. const string ENGINE_DIR = ".";
  15. const string EXE_PREFIX = "./";
  16. const string EXE_SUFFIX = "";
  17. #elif CROWN_PLATFORM_WINDOWS
  18. const string ENGINE_DIR = ".";
  19. const string EXE_PREFIX = "";
  20. const string EXE_SUFFIX = ".exe";
  21. #endif
  22. const string ENGINE_EXE = EXE_PREFIX
  23. #if CROWN_DEBUG
  24. + "crown-debug"
  25. #else
  26. + "crown-development"
  27. #endif
  28. + EXE_SUFFIX;
  29. const string DATA_COMPILER_ADDRESS = "127.0.0.1";
  30. const uint16 DATA_COMPILER_TCP_PORT = 10618;
  31. const string EDITOR_ADDRESS = "127.0.0.1";
  32. const uint16 EDITOR_TCP_PORT = 10001;
  33. const string UNIT_PREVIEW_ADDRESS = "127.0.0.1";
  34. const uint16 UNIT_PREVIEW_TCP_PORT = 10002;
  35. const string GAME_ADDRESS = "127.0.0.1";
  36. const uint16 GAME_TCP_PORT = 12345;
  37. const string THUMBNAIL_ADDRESS = "127.0.0.1";
  38. const uint16 THUMBNAIL_TCP_PORT = 54321;
  39. const int DATA_COMPILER_CONNECTION_TRIES = 10;
  40. const int DATA_COMPILER_CONNECTION_INTERVAL = 250;
  41. const int EDITOR_CONNECTION_TRIES = 16;
  42. const int EDITOR_CONNECTION_INTERVAL = 125;
  43. const int GAME_CONNECTION_TRIES = 16;
  44. const int GAME_CONNECTION_INTERVAL = 125;
  45. const int THUMBNAIL_CONNECTION_TRIES = 16;
  46. const int THUMBNAIL_CONNECTION_INTERVAL = 125;
  47. const string LEVEL_EDITOR_BOOT_DIR = "core/editors/level_editor";
  48. const string UNIT_PREVIEW_BOOT_DIR = "core/editors/unit_preview";
  49. const string THUMBNAIL_BOOT_DIR = "core/editors/thumbnail";
  50. const string LEVEL_NONE = "";
  51. const string LEVEL_EMPTY = "core/editors/levels/empty";
  52. } /* namespace Crown */