config.vala 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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.59.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. const string CROWN_CREDITS_URL = CROWN_WWW_URL + "/about/credits";
  14. #if CROWN_PLATFORM_LINUX
  15. const string ENGINE_DIR = ".";
  16. const string EXE_PREFIX = "./";
  17. const string EXE_SUFFIX = "";
  18. #elif CROWN_PLATFORM_WINDOWS
  19. const string ENGINE_DIR = ".";
  20. const string EXE_PREFIX = "";
  21. const string EXE_SUFFIX = ".exe";
  22. #endif
  23. const string ENGINE_EXE = EXE_PREFIX
  24. #if CROWN_DEBUG
  25. + "crown-debug"
  26. #else
  27. + "crown-development"
  28. #endif
  29. + EXE_SUFFIX;
  30. const string DATA_COMPILER_ADDRESS = "127.0.0.1";
  31. const uint16 DATA_COMPILER_TCP_PORT = 10618;
  32. const string EDITOR_ADDRESS = "127.0.0.1";
  33. const uint16 EDITOR_TCP_PORT = 10001;
  34. const string UNIT_PREVIEW_ADDRESS = "127.0.0.1";
  35. const uint16 UNIT_PREVIEW_TCP_PORT = 10002;
  36. const string GAME_ADDRESS = "127.0.0.1";
  37. const uint16 GAME_TCP_PORT = 12345;
  38. const string THUMBNAIL_ADDRESS = "127.0.0.1";
  39. const uint16 THUMBNAIL_TCP_PORT = 54321;
  40. const int DATA_COMPILER_CONNECTION_TRIES = 10;
  41. const int DATA_COMPILER_CONNECTION_INTERVAL = 250;
  42. const int EDITOR_CONNECTION_TRIES = 16;
  43. const int EDITOR_CONNECTION_INTERVAL = 125;
  44. const int GAME_CONNECTION_TRIES = 16;
  45. const int GAME_CONNECTION_INTERVAL = 125;
  46. const int THUMBNAIL_CONNECTION_TRIES = 16;
  47. const int THUMBNAIL_CONNECTION_INTERVAL = 125;
  48. const string LEVEL_EDITOR_BOOT_DIR = "core/editors/level_editor";
  49. const string UNIT_PREVIEW_BOOT_DIR = "core/editors/unit_preview";
  50. const string THUMBNAIL_BOOT_DIR = "core/editors/thumbnail";
  51. const string LEVEL_NONE = "";
  52. const string LEVEL_EMPTY = "core/editors/levels/empty";
  53. } /* namespace Crown */