hkCompat_All.cxx
上传用户:yisoukefu
上传日期:2020-08-09
资源大小:39506k
文件大小:3k
源码类别:

其他游戏

开发平台:

Visual C++

  1. /* 
  2.  * 
  3.  * Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's
  4.  * prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok.
  5.  * Level 2 and Level 3 source code contains trade secrets of Havok. Havok Software (C) Copyright 1999-2009 Telekinesys Research Limited t/a Havok. All Rights Reserved. Use of this software is subject to the terms of an end user license agreement.
  6.  * 
  7.  */
  8. #ifndef HK_COMPAT_FILE
  9. # error Please define HK_COMPAT_FILE before including this file
  10. #endif
  11. // The default is to list all classes and updaters
  12. #ifndef HK_LIST_UPDATERS
  13. # define HK_LIST_UPDATERS 1
  14. #endif
  15. #ifndef HK_LIST_CLASS_VERSIONS
  16. # define HK_LIST_CLASS_VERSIONS 1
  17. #endif
  18. #include <Common/Base/Config/hkConfigVersion.h>
  19. #include <Common/Serialize/Version/hkVersionRegistry.h>
  20. #include <Common/Serialize/Util/hkBuiltinTypeRegistry.h>
  21. #if HK_LIST_UPDATERS
  22. // Forward declarations of all used updaters
  23. # define HK_CLASS_UPDATE_INFO(FROM,TO) 
  24. namespace hkCompat_hk##FROM##_hk##TO 
  25. extern hkVersionRegistry::Updater hkVersionUpdater; 
  26. }
  27. # include HK_COMPAT_FILE
  28. # undef HK_CLASS_UPDATE_INFO
  29. // List of all updaters
  30. # define HK_CLASS_UPDATE_INFO(FROM,TO) &hkCompat_hk##FROM##_hk##TO::hkVersionUpdater,
  31. const hkVersionRegistry::Updater* hkVersionRegistry::StaticLinkedUpdaters[] =
  32. {
  33. # include HK_COMPAT_FILE
  34. HK_NULL
  35. };
  36. # undef HK_CLASS_UPDATE_INFO
  37. #else
  38. // empty updaters list
  39. const hkVersionRegistry::Updater* hkVersionRegistry::StaticLinkedUpdaters[] =
  40. {
  41. HK_NULL
  42. };
  43. #endif
  44. #if HK_LIST_CLASS_VERSIONS
  45. // Forward declarations of all used classes
  46. # define HK_HAVOK_CLASSES_VERSION(HKVER) 
  47. namespace hkHavok##HKVER##Classes 
  48. extern const hkStaticClassNameRegistry hkHavokDefaultClassRegistry; 
  49. }
  50. # include <Common/Compat/hkHavokVersionClasses.h>
  51. # undef HK_HAVOK_CLASSES_VERSION
  52. // List of all versions and corresponding classes
  53. # define HK_HAVOK_CLASSES_VERSION(HKVER) &hkHavok##HKVER##Classes::hkHavokDefaultClassRegistry,
  54. const hkStaticClassNameRegistry* hkVersionRegistry::StaticLinkedClassRegistries[] =
  55. {
  56. # include <Common/Compat/hkHavokVersionClasses.h>
  57. HK_NULL
  58. };
  59. #undef HK_HAVOK_CLASSES_VERSION
  60. #else
  61. // only current class registry
  62. namespace hkHavokCurrentClasses
  63. {
  64. extern const hkStaticClassNameRegistry hkHavokDefaultClassRegistry;
  65. }
  66. const hkStaticClassNameRegistry* hkVersionRegistry::StaticLinkedClassRegistries[] =
  67. {
  68. &hkHavokCurrentClasses::hkHavokDefaultClassRegistry,
  69. HK_NULL
  70. };
  71. #endif
  72. /*
  73. * Havok SDK - NO SOURCE PC DOWNLOAD, BUILD(#20090216)
  74. * Confidential Information of Havok.  (C) Copyright 1999-2009
  75. * Telekinesys Research Limited t/a Havok. All Rights Reserved. The Havok
  76. * Logo, and the Havok buzzsaw logo are trademarks of Havok.  Title, ownership
  77. * rights, and intellectual property rights in the Havok software remain in
  78. * Havok and/or its suppliers.
  79. * Use of this software for evaluation purposes is subject to and indicates
  80. * acceptance of the End User licence Agreement for this product. A copy of
  81. * the license is included with this software and is also available at www.havok.com/tryhavok.
  82. */