version.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. //-----------------------------------------------------------------------------
  2. // Copyright (c) 2012 GarageGames, LLC
  3. //
  4. // Permission is hereby granted, free of charge, to any person obtaining a copy
  5. // of this software and associated documentation files (the "Software"), to
  6. // deal in the Software without restriction, including without limitation the
  7. // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  8. // sell copies of the Software, and to permit persons to whom the Software is
  9. // furnished to do so, subject to the following conditions:
  10. //
  11. // The above copyright notice and this permission notice shall be included in
  12. // all copies or substantial portions of the Software.
  13. //
  14. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  20. // IN THE SOFTWARE.
  21. //-----------------------------------------------------------------------------
  22. #ifndef _VERSION_H_
  23. #define _VERSION_H_
  24. /// Since we can build different engine "products" out of the same
  25. /// base engine source we need a way to differentiate which product
  26. /// this particular game is using.
  27. ///
  28. /// TGE 0001
  29. /// TGEA 0002
  30. /// TGB 0003
  31. /// TGEA 360 0004
  32. /// TGE WII 0005
  33. /// Torque 3D 0006
  34. /// Torque 3D MIT 0007
  35. #define TORQUE_ENGINE_PRODUCT 0007
  36. /// This is our global version number for the engine source code that
  37. /// we are using. See <game>/source/torqueConfig.h for the game's source
  38. /// code version, the game name, and which type of game it is (TGB, TGE, TGEA, etc.).
  39. ///
  40. /// Version number is major * 1000 + minor * 100 + revision * 10.
  41. #define TORQUE_GAME_ENGINE 4003
  42. /// Human readable engine version string.
  43. #define TORQUE_GAME_ENGINE_VERSION_STRING "4.0.3"
  44. /// Gets the engine version number. The version number is specified as a global in version.cc
  45. U32 getVersionNumber();
  46. /// Gets the engine version number in a human readable form
  47. const char* getVersionString();
  48. /// Gets the engine product name in string form
  49. const char* getEngineProductString();
  50. /// Gets the compile date and time
  51. const char* getCompileTimeString();
  52. /// Gets the application version number. The version number is specified as a global in torqueConfig.h
  53. U32 getAppVersionNumber();
  54. /// Gets the human readable application version string.
  55. const char* getAppVersionString();
  56. #endif