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

其他游戏

开发平台:

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. //=======
  9. // 650b1
  10. //=======
  11. HK_PATCH_BEGIN("hkbPredicate", 0, "hkbCondition", 0)
  12. HK_PATCH_END()
  13. HK_PATCH_BEGIN("hkbStringPredicate", 0, "hkbStringCondition", 0)
  14. HK_PATCH_MEMBER_RENAMED("predicateString", "conditionString")
  15. HK_PATCH_END()
  16. HK_PATCH_BEGIN("hkbClimbMountingPredicate", 0, "hkbClimbMountingCondition", 0)
  17. HK_PATCH_END()
  18. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbExpressionData", 0)
  19. HK_PATCH_MEMBER_ADDED("expression", TYPE_CSTRING, HK_NULL, 0)
  20. HK_PATCH_MEMBER_ADDED("assignmentVariableIndex", TYPE_INT, HK_NULL, 0)
  21. HK_PATCH_MEMBER_ADDED("assignmentEventIndex", TYPE_INT, HK_NULL, 0)
  22. HK_PATCH_MEMBER_ADDED("eventMode", TYPE_INT, HK_NULL, 0)
  23. HK_PATCH_END()
  24. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbRealEventPayload", 0)
  25. HK_PATCH_PARENT_SET(HK_NULL, "hkbEventPayload")
  26. HK_PATCH_MEMBER_ADDED("data", TYPE_REAL, HK_NULL, 0)
  27. HK_PATCH_DEPENDS("hkbEventPayload", 0)
  28. HK_PATCH_DEPENDS("hkBaseObject", 0)
  29. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  30. HK_PATCH_END()
  31. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbSceneModifierList", 0)
  32. HK_PATCH_PARENT_SET(HK_NULL, "hkbModifier")
  33. HK_PATCH_MEMBER_ADDED("sceneModifierEntries", TYPE_ARRAY_STRUCT, "hkbSceneModifierListSceneModifierEntry", 0)
  34. HK_PATCH_DEPENDS("hkbNode", 0)
  35. HK_PATCH_DEPENDS("hkbSceneModifierListSceneModifierEntry", 0)
  36. HK_PATCH_DEPENDS("hkBaseObject", 0)
  37. HK_PATCH_DEPENDS("hkbModifier", 0)
  38. HK_PATCH_DEPENDS("hkbBindable", 0)
  39. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  40. HK_PATCH_END()
  41. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbClipTriggerArray", 0)
  42. HK_PATCH_PARENT_SET(HK_NULL, "hkReferencedObject")
  43. HK_PATCH_MEMBER_ADDED("triggers", TYPE_ARRAY_STRUCT, "hkbClipTrigger", 0)
  44. HK_PATCH_DEPENDS("hkBaseObject", 0)
  45. HK_PATCH_DEPENDS("hkbClipTrigger", 0)
  46. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  47. HK_PATCH_END()
  48. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbNamedRealEventPayload", 0)
  49. HK_PATCH_PARENT_SET(HK_NULL, "hkbNamedEventPayload")
  50. HK_PATCH_MEMBER_ADDED("data", TYPE_REAL, HK_NULL, 0)
  51. HK_PATCH_DEPENDS("hkbEventPayload", 0)
  52. HK_PATCH_DEPENDS("hkBaseObject", 0)
  53. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  54. HK_PATCH_DEPENDS("hkbNamedEventPayload", 0)
  55. HK_PATCH_END()
  56. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbRoleAttribute", 0)
  57. HK_PATCH_MEMBER_ADDED("role", TYPE_INT, HK_NULL, 0)
  58. HK_PATCH_MEMBER_ADDED("flags", TYPE_INT, HK_NULL, 0)
  59. HK_PATCH_END()
  60. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbIntEventPayload", 0)
  61. HK_PATCH_PARENT_SET(HK_NULL, "hkbEventPayload")
  62. HK_PATCH_MEMBER_ADDED("data", TYPE_INT, HK_NULL, 0)
  63. HK_PATCH_DEPENDS("hkbEventPayload", 0)
  64. HK_PATCH_DEPENDS("hkBaseObject", 0)
  65. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  66. HK_PATCH_END()
  67. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbComputeRotationToTargetModifier", 0)
  68. HK_PATCH_PARENT_SET(HK_NULL, "hkbModifier")
  69. HK_PATCH_MEMBER_ADDED("rotationOut", TYPE_VEC_4, HK_NULL, 0)
  70. HK_PATCH_MEMBER_ADDED("targetPosition", TYPE_VEC_4, HK_NULL, 0)
  71. HK_PATCH_MEMBER_ADDED("currentPosition", TYPE_VEC_4, HK_NULL, 0)
  72. HK_PATCH_MEMBER_ADDED("currentRotation", TYPE_VEC_4, HK_NULL, 0)
  73. HK_PATCH_MEMBER_ADDED("localAxisOfRotation", TYPE_VEC_4, HK_NULL, 0)
  74. HK_PATCH_MEMBER_ADDED("localFacingDirection", TYPE_VEC_4, HK_NULL, 0)
  75. HK_PATCH_MEMBER_ADDED("resultIsDelta", TYPE_BYTE, HK_NULL, 0)
  76. HK_PATCH_DEPENDS("hkbNode", 0)
  77. HK_PATCH_DEPENDS("hkBaseObject", 0)
  78. HK_PATCH_DEPENDS("hkbModifier", 0)
  79. HK_PATCH_DEPENDS("hkbBindable", 0)
  80. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  81. HK_PATCH_END()
  82. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbEventPayloadList", 0)
  83. HK_PATCH_PARENT_SET(HK_NULL, "hkbEventPayload")
  84. HK_PATCH_MEMBER_ADDED("payloads", TYPE_ARRAY_OBJECT, "hkbEventPayload", 0)
  85. HK_PATCH_DEPENDS("hkbEventPayload", 0)
  86. HK_PATCH_DEPENDS("hkBaseObject", 0)
  87. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  88. HK_PATCH_END()
  89. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbComputeRotationFromAxisAngleModifier", 0)
  90. HK_PATCH_PARENT_SET(HK_NULL, "hkbModifier")
  91. HK_PATCH_MEMBER_ADDED("rotationOut", TYPE_VEC_4, HK_NULL, 0)
  92. HK_PATCH_MEMBER_ADDED("axis", TYPE_VEC_4, HK_NULL, 0)
  93. HK_PATCH_MEMBER_ADDED("angleDegrees", TYPE_REAL, HK_NULL, 0)
  94. HK_PATCH_DEPENDS("hkbNode", 0)
  95. HK_PATCH_DEPENDS("hkBaseObject", 0)
  96. HK_PATCH_DEPENDS("hkbModifier", 0)
  97. HK_PATCH_DEPENDS("hkbBindable", 0)
  98. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  99. HK_PATCH_END()
  100. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbExpressionDataArray", 0)
  101. HK_PATCH_PARENT_SET(HK_NULL, "hkReferencedObject")
  102. HK_PATCH_MEMBER_ADDED("expressionsData", TYPE_ARRAY_STRUCT, "hkbExpressionData", 0)
  103. HK_PATCH_DEPENDS("hkbExpressionData", 0)
  104. HK_PATCH_DEPENDS("hkBaseObject", 0)
  105. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  106. HK_PATCH_END()
  107. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbCompiledExpressionSet", 0)
  108. HK_PATCH_PARENT_SET(HK_NULL, "hkReferencedObject")
  109. HK_PATCH_MEMBER_ADDED("rpn", TYPE_ARRAY_STRUCT, "hkbCompiledExpressionSetToken", 0)
  110. HK_PATCH_MEMBER_ADDED("numExpressions", TYPE_INT, HK_NULL, 0)
  111. HK_PATCH_DEPENDS("hkBaseObject", 0)
  112. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  113. HK_PATCH_DEPENDS("hkbCompiledExpressionSetToken", 0)
  114. HK_PATCH_END()
  115. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbCombineTransformsModifier", 0)
  116. HK_PATCH_PARENT_SET(HK_NULL, "hkbModifier")
  117. HK_PATCH_MEMBER_ADDED("translationOut", TYPE_VEC_4, HK_NULL, 0)
  118. HK_PATCH_MEMBER_ADDED("rotationOut", TYPE_VEC_4, HK_NULL, 0)
  119. HK_PATCH_MEMBER_ADDED("leftTranslation", TYPE_VEC_4, HK_NULL, 0)
  120. HK_PATCH_MEMBER_ADDED("leftRotation", TYPE_VEC_4, HK_NULL, 0)
  121. HK_PATCH_MEMBER_ADDED("rightTranslation", TYPE_VEC_4, HK_NULL, 0)
  122. HK_PATCH_MEMBER_ADDED("rightRotation", TYPE_VEC_4, HK_NULL, 0)
  123. HK_PATCH_MEMBER_ADDED("invertLeftTransform", TYPE_BYTE, HK_NULL, 0)
  124. HK_PATCH_MEMBER_ADDED("invertRightTransform", TYPE_BYTE, HK_NULL, 0)
  125. HK_PATCH_MEMBER_ADDED("invertResult", TYPE_BYTE, HK_NULL, 0)
  126. HK_PATCH_DEPENDS("hkbNode", 0)
  127. HK_PATCH_DEPENDS("hkBaseObject", 0)
  128. HK_PATCH_DEPENDS("hkbModifier", 0)
  129. HK_PATCH_DEPENDS("hkbBindable", 0)
  130. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  131. HK_PATCH_END()
  132. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbExpressionCondition", 0)
  133. HK_PATCH_PARENT_SET(HK_NULL, "hkbCondition")
  134. HK_PATCH_MEMBER_ADDED("expression", TYPE_CSTRING, HK_NULL, 0)
  135. HK_PATCH_MEMBER_ADDED("compiledExpressionSet", TYPE_OBJECT, "hkbCompiledExpressionSet", 0)
  136. HK_PATCH_DEPENDS("hkBaseObject", 0)
  137. HK_PATCH_DEPENDS("hkbCompiledExpressionSet", 0)
  138. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  139. HK_PATCH_DEPENDS("hkbCondition", 0)
  140. HK_PATCH_END()
  141. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbBoneWeightArray", 0)
  142. HK_PATCH_PARENT_SET(HK_NULL, "hkbBindable")
  143. HK_PATCH_MEMBER_ADDED("boneWeights", TYPE_ARRAY_REAL, HK_NULL, 0)
  144. HK_PATCH_DEPENDS("hkBaseObject", 0)
  145. HK_PATCH_DEPENDS("hkbBindable", 0)
  146. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  147. HK_PATCH_END()
  148. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbSenseHandleModifierRange", 0)
  149. HK_PATCH_MEMBER_ADDED("event", TYPE_STRUCT, "hkbEventProperty", 0)
  150. HK_PATCH_MEMBER_ADDED("minDistance", TYPE_REAL, HK_NULL, 0)
  151. HK_PATCH_MEMBER_ADDED("maxDistance", TYPE_REAL, HK_NULL, 0)
  152. HK_PATCH_MEMBER_ADDED("ignoreHandle", TYPE_BYTE, HK_NULL, 0)
  153. HK_PATCH_DEPENDS("hkbEventProperty", 0)
  154. HK_PATCH_DEPENDS("hkbEvent", 0)
  155. HK_PATCH_END()
  156. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbBindable", 0)
  157. HK_PATCH_PARENT_SET(HK_NULL, "hkReferencedObject")
  158. HK_PATCH_MEMBER_ADDED("variableBindingSet", TYPE_OBJECT, "hkbVariableBindingSet", 0)
  159. HK_PATCH_DEPENDS("hkBaseObject", 0)
  160. HK_PATCH_DEPENDS("hkbVariableBindingSet", 0)
  161. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  162. HK_PATCH_END()
  163. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbSillyEventPayload", 0)
  164. HK_PATCH_PARENT_SET(HK_NULL, "hkbEventPayload")
  165. HK_PATCH_MEMBER_ADDED("sillyMessage", TYPE_CSTRING, HK_NULL, 0)
  166. HK_PATCH_MEMBER_ADDED("sillyGain", TYPE_REAL, HK_NULL, 0)
  167. HK_PATCH_MEMBER_ADDED("sillyIndex", TYPE_INT, HK_NULL, 0)
  168. HK_PATCH_MEMBER_ADDED("sillyEnum", TYPE_INT, HK_NULL, 0)
  169. HK_PATCH_DEPENDS("hkbEventPayload", 0)
  170. HK_PATCH_DEPENDS("hkBaseObject", 0)
  171. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  172. HK_PATCH_END()
  173. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbBoneIndexArray", 0)
  174. HK_PATCH_PARENT_SET(HK_NULL, "hkbBindable")
  175. HK_PATCH_MEMBER_ADDED("boneIndices", TYPE_ARRAY_INT, HK_NULL, 0)
  176. HK_PATCH_DEPENDS("hkBaseObject", 0)
  177. HK_PATCH_DEPENDS("hkbBindable", 0)
  178. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  179. HK_PATCH_END()
  180. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbNamedStringEventPayload", 0)
  181. HK_PATCH_PARENT_SET(HK_NULL, "hkbNamedEventPayload")
  182. HK_PATCH_MEMBER_ADDED("data", TYPE_CSTRING, HK_NULL, 0)
  183. HK_PATCH_DEPENDS("hkbEventPayload", 0)
  184. HK_PATCH_DEPENDS("hkBaseObject", 0)
  185. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  186. HK_PATCH_DEPENDS("hkbNamedEventPayload", 0)
  187. HK_PATCH_END()
  188. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbNamedIntEventPayload", 0)
  189. HK_PATCH_PARENT_SET(HK_NULL, "hkbNamedEventPayload")
  190. HK_PATCH_MEMBER_ADDED("data", TYPE_INT, HK_NULL, 0)
  191. HK_PATCH_DEPENDS("hkbEventPayload", 0)
  192. HK_PATCH_DEPENDS("hkBaseObject", 0)
  193. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  194. HK_PATCH_DEPENDS("hkbNamedEventPayload", 0)
  195. HK_PATCH_END()
  196. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbEventProperty", 0)
  197. HK_PATCH_PARENT_SET(HK_NULL, "hkbEvent")
  198. HK_PATCH_DEPENDS("hkbEvent", 0)
  199. HK_PATCH_END()
  200. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbEvaluateExpressionModifier", 0)
  201. HK_PATCH_PARENT_SET(HK_NULL, "hkbModifier")
  202. HK_PATCH_MEMBER_ADDED("expressions", TYPE_OBJECT, "hkbExpressionDataArray", 0)
  203. HK_PATCH_MEMBER_ADDED("compiledExpressionSet", TYPE_OBJECT, "hkbCompiledExpressionSet", 0)
  204. HK_PATCH_DEPENDS("hkbNode", 0)
  205. HK_PATCH_DEPENDS("hkBaseObject", 0)
  206. HK_PATCH_DEPENDS("hkbModifier", 0)
  207. HK_PATCH_DEPENDS("hkbBindable", 0)
  208. HK_PATCH_DEPENDS("hkbExpressionDataArray", 0)
  209. HK_PATCH_DEPENDS("hkbCompiledExpressionSet", 0)
  210. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  211. HK_PATCH_END()
  212. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbNamedEventPayload", 0)
  213. HK_PATCH_PARENT_SET(HK_NULL, "hkbEventPayload")
  214. HK_PATCH_MEMBER_ADDED("name", TYPE_CSTRING, HK_NULL, 0)
  215. HK_PATCH_DEPENDS("hkbEventPayload", 0)
  216. HK_PATCH_DEPENDS("hkBaseObject", 0)
  217. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  218. HK_PATCH_END()
  219. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbVariableValueSet", 0)
  220. HK_PATCH_PARENT_SET(HK_NULL, "hkReferencedObject")
  221. HK_PATCH_MEMBER_ADDED("wordVariableValues", TYPE_ARRAY_STRUCT, "hkbVariableValue", 0)
  222. HK_PATCH_MEMBER_ADDED("quadVariableValues", TYPE_ARRAY_VEC_4, HK_NULL, 0)
  223. HK_PATCH_MEMBER_ADDED("variantVariableValues", TYPE_ARRAY_OBJECT, HK_NULL, 0)
  224. HK_PATCH_DEPENDS("hkBaseObject", 0)
  225. HK_PATCH_DEPENDS("hkbVariableValue", 0)
  226. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  227. HK_PATCH_END()
  228. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbStateMachineTransitionInfoArray", 0)
  229. HK_PATCH_PARENT_SET(HK_NULL, "hkReferencedObject")
  230. HK_PATCH_MEMBER_ADDED("transitions", TYPE_ARRAY_STRUCT, "hkbStateMachineTransitionInfo", 0)
  231. HK_PATCH_DEPENDS("hkBaseObject", 0)
  232. HK_PATCH_DEPENDS("hkbStateMachineTransitionInfo", 0)
  233. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  234. HK_PATCH_END()
  235. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbStringEventPayload", 0)
  236. HK_PATCH_PARENT_SET(HK_NULL, "hkbEventPayload")
  237. HK_PATCH_MEMBER_ADDED("data", TYPE_CSTRING, HK_NULL, 0)
  238. HK_PATCH_DEPENDS("hkbEventPayload", 0)
  239. HK_PATCH_DEPENDS("hkBaseObject", 0)
  240. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  241. HK_PATCH_END()
  242. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbExtractRagdollPoseModifier", 0)
  243. HK_PATCH_PARENT_SET(HK_NULL, "hkbModifier")
  244. HK_PATCH_DEPENDS("hkbNode", 0)
  245. HK_PATCH_DEPENDS("hkBaseObject", 0)
  246. HK_PATCH_DEPENDS("hkbModifier", 0)
  247. HK_PATCH_DEPENDS("hkbBindable", 0)
  248. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  249. HK_PATCH_END()
  250. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbStateListener", 0)
  251. HK_PATCH_PARENT_SET(HK_NULL, "hkReferencedObject")
  252. HK_PATCH_DEPENDS("hkBaseObject", 0)
  253. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  254. HK_PATCH_END()
  255. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbEventPayload", 0)
  256. HK_PATCH_PARENT_SET(HK_NULL, "hkReferencedObject")
  257. HK_PATCH_DEPENDS("hkBaseObject", 0)
  258. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  259. HK_PATCH_END()
  260. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbCompiledExpressionSetToken", 0)
  261. HK_PATCH_MEMBER_ADDED("data", TYPE_REAL, HK_NULL, 0)
  262. HK_PATCH_MEMBER_ADDED("type", TYPE_INT, HK_NULL, 0)
  263. HK_PATCH_MEMBER_ADDED("operator", TYPE_INT, HK_NULL, 0)
  264. HK_PATCH_END()
  265. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbSceneModifierListSceneModifierEntry", 0)
  266. HK_PATCH_MEMBER_ADDED("sceneModifier", TYPE_INT, HK_NULL, 0)
  267. HK_PATCH_MEMBER_ADDED("postSceneModifier", TYPE_OBJECT, "hkbModifier", 0)
  268. HK_PATCH_DEPENDS("hkbNode", 0)
  269. HK_PATCH_DEPENDS("hkBaseObject", 0)
  270. HK_PATCH_DEPENDS("hkbModifier", 0)
  271. HK_PATCH_DEPENDS("hkbBindable", 0)
  272. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  273. HK_PATCH_END()
  274. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkbBallModifier", 0)
  275. HK_PATCH_PARENT_SET(HK_NULL, "hkbModifier")
  276. HK_PATCH_MEMBER_ADDED("velocity", TYPE_VEC_4, HK_NULL, 0)
  277. HK_PATCH_MEMBER_ADDED("applyForceEventId", TYPE_INT, HK_NULL, 0)
  278. HK_PATCH_MEMBER_ADDED("applyForce", TYPE_BYTE, HK_NULL, 0)
  279. HK_PATCH_DEPENDS("hkbNode", 0)
  280. HK_PATCH_DEPENDS("hkBaseObject", 0)
  281. HK_PATCH_DEPENDS("hkbModifier", 0)
  282. HK_PATCH_DEPENDS("hkbBindable", 0)
  283. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  284. HK_PATCH_END()
  285. HK_PATCH_BEGIN("hkbMoveBoneTowardTargetModifier", 0, "hkbMoveBoneTowardTargetModifier", 1)
  286. HK_PATCH_MEMBER_RENAMED("eventToSendWhenTargetReached", "old_eventToSendWhenTargetReached")
  287. HK_PATCH_MEMBER_ADDED("eventToSendWhenTargetReached", TYPE_STRUCT, "hkbEventProperty", 0)
  288. HK_PATCH_FUNCTION(hkbMoveBoneTowardTargetModifier_0_to_1)
  289. HK_PATCH_MEMBER_REMOVED("old_eventToSendWhenTargetReached", TYPE_INT, HK_NULL, 0)
  290. HK_PATCH_DEPENDS("hkbEventProperty", 0)
  291. HK_PATCH_DEPENDS("hkbEvent", 0)
  292. HK_PATCH_END()
  293. HK_PATCH_BEGIN("hkbCharacterStringData", 0, "hkbCharacterStringData", 1)
  294. HK_PATCH_MEMBER_ADDED("characterPropertyNames", TYPE_ARRAY_CSTRING, HK_NULL, 0)
  295. HK_PATCH_END()
  296. HK_PATCH_BEGIN("hkbSplinePathGenerator", 0, "hkbSplinePathGenerator", 1)
  297. HK_PATCH_MEMBER_ADDED("pathEndEvent", TYPE_STRUCT, "hkbEventProperty", 0)
  298. HK_PATCH_FUNCTION(hkbSplinePathGenerator_0_to_1)
  299. HK_PATCH_MEMBER_REMOVED("pathEndEventId", TYPE_INT, HK_NULL, 0)
  300. HK_PATCH_DEPENDS("hkbEventProperty", 0)
  301. HK_PATCH_DEPENDS("hkbEvent", 0)
  302. HK_PATCH_END()
  303. HK_PATCH_BEGIN("hkbHandIkControlData", 0, "hkbHandIkControlData", 1)
  304. HK_PATCH_MEMBER_ADDED("targetRotation", TYPE_VEC_4, HK_NULL, 0)
  305. HK_PATCH_END()
  306. HK_PATCH_BEGIN("hkbSenseHandleModifier", 0, "hkbSenseHandleModifier", 1)
  307. HK_PATCH_MEMBER_ADDED("ranges", TYPE_ARRAY_STRUCT, "hkbSenseHandleModifierRange", 0)
  308. HK_PATCH_MEMBER_ADDED("minDistance", TYPE_REAL, HK_NULL, 0)
  309. HK_PATCH_DEPENDS("hkbSenseHandleModifierRange", 0)
  310. HK_PATCH_END()
  311. HK_PATCH_BEGIN("hkbAttachmentModifier", 0, "hkbAttachmentModifier", 1)
  312. HK_PATCH_MEMBER_RENAMED("sendToAttacherOnAttach", "old_sendToAttacherOnAttach")
  313. HK_PATCH_MEMBER_ADDED("sendToAttacherOnAttach", TYPE_STRUCT, "hkbEventProperty", 0)
  314. HK_PATCH_MEMBER_RENAMED("sendToAttacheeOnAttach", "old_sendToAttacheeOnAttach")
  315. HK_PATCH_MEMBER_ADDED("sendToAttacheeOnAttach", TYPE_STRUCT, "hkbEventProperty", 0)
  316. HK_PATCH_MEMBER_RENAMED("sendToAttacherOnDetach", "old_sendToAttacherOnDetach")
  317. HK_PATCH_MEMBER_ADDED("sendToAttacherOnDetach", TYPE_STRUCT, "hkbEventProperty", 0)
  318. HK_PATCH_MEMBER_RENAMED("sendToAttacheeOnDetach", "old_sendToAttacheeOnDetach")
  319. HK_PATCH_MEMBER_ADDED("sendToAttacheeOnDetach", TYPE_STRUCT, "hkbEventProperty", 0)
  320. HK_PATCH_FUNCTION(hkbAttachmentModifier_0_to_1)
  321. HK_PATCH_MEMBER_REMOVED("old_sendToAttacherOnAttach", TYPE_INT, HK_NULL, 0)
  322. HK_PATCH_MEMBER_REMOVED("old_sendToAttacheeOnAttach", TYPE_INT, HK_NULL, 0)
  323. HK_PATCH_MEMBER_REMOVED("old_sendToAttacherOnDetach", TYPE_INT, HK_NULL, 0)
  324. HK_PATCH_MEMBER_REMOVED("old_sendToAttacheeOnDetach", TYPE_INT, HK_NULL, 0)
  325. HK_PATCH_DEPENDS("hkbEventProperty", 0)
  326. HK_PATCH_DEPENDS("hkbEvent", 0)
  327. HK_PATCH_END()
  328. HK_PATCH_BEGIN("hkbTimerModifier", 0, "hkbTimerModifier", 1)
  329. HK_PATCH_MEMBER_ADDED("alarmEvent", TYPE_STRUCT, "hkbEventProperty", 0)
  330. HK_PATCH_FUNCTION(hkbTimerModifier_0_to_1)
  331. HK_PATCH_MEMBER_REMOVED("eventIdToSend", TYPE_INT, HK_NULL, 0)
  332. HK_PATCH_DEPENDS("hkbEventProperty", 0)
  333. HK_PATCH_DEPENDS("hkbEvent", 0)
  334. HK_PATCH_END()
  335. HK_PATCH_BEGIN("hkbBehaviorGraphStringData", 0, "hkbBehaviorGraphStringData", 1)
  336. HK_PATCH_MEMBER_ADDED("characterPropertyNames", TYPE_ARRAY_CSTRING, HK_NULL, 0)
  337. HK_PATCH_END()
  338. HK_PATCH_BEGIN("hkbTargetRigidBodyModifier", 0, "hkbTargetRigidBodyModifier", 1)
  339. HK_PATCH_MEMBER_RENAMED("eventToSend", "old_eventToSend")
  340. HK_PATCH_MEMBER_ADDED("eventToSend", TYPE_STRUCT, "hkbEventProperty", 0)
  341. HK_PATCH_MEMBER_RENAMED("eventToSendToTarget", "old_eventToSendToTarget")
  342. HK_PATCH_MEMBER_ADDED("eventToSendToTarget", TYPE_STRUCT, "hkbEventProperty", 0)
  343. HK_PATCH_MEMBER_ADDED("closeToTargetEvent", TYPE_STRUCT, "hkbEventProperty", 0)
  344. HK_PATCH_FUNCTION(hkbTargetRigidBodyModifier_0_to_1)
  345. HK_PATCH_MEMBER_REMOVED("old_eventToSend", TYPE_INT, HK_NULL, 0)
  346. HK_PATCH_MEMBER_REMOVED("old_eventToSendToTarget", TYPE_INT, HK_NULL, 0)
  347. HK_PATCH_MEMBER_REMOVED("closeToTargetEventId", TYPE_INT, HK_NULL, 0)
  348. HK_PATCH_DEPENDS("hkbEventProperty", 0)
  349. HK_PATCH_DEPENDS("hkbEvent", 0)
  350. HK_PATCH_END()
  351. HK_PATCH_BEGIN("hkbStateMachineProspectiveTransitionInfo", 0, "hkbStateMachineProspectiveTransitionInfo", 1)
  352. HK_PATCH_MEMBER_REMOVED("transitionInfo", TYPE_OBJECT, "hkbStateMachineTransitionInfo", 0)
  353. HK_PATCH_MEMBER_REMOVED("transitionEffect", TYPE_OBJECT, "hkbTransitionEffect", 0)
  354. HK_PATCH_MEMBER_REMOVED("toStateId", TYPE_INT, HK_NULL, 0)
  355. HK_PATCH_MEMBER_REMOVED("isGlobalWildcard", TYPE_BYTE, HK_NULL, 0)
  356. HK_PATCH_DEPENDS("hkbNode", 0)
  357. HK_PATCH_DEPENDS("hkBaseObject", 0)
  358. HK_PATCH_DEPENDS("hkbGenerator", 0)
  359. HK_PATCH_DEPENDS("hkbTransitionEffect", 0)
  360. HK_PATCH_DEPENDS("hkbStateMachineTransitionInfo", 0)
  361. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  362. HK_PATCH_END()
  363. HK_PATCH_BEGIN("hkbEvaluateHandleModifier", 0, "hkbEvaluateHandleModifier", 1)
  364. HK_PATCH_MEMBER_ADDED("extrapolationTimeStep", TYPE_REAL, HK_NULL, 0)
  365. HK_PATCH_END()
  366. HK_PATCH_BEGIN("hkbDetectCloseToGroundModifier", 0, "hkbDetectCloseToGroundModifier", 1)
  367. HK_PATCH_MEMBER_ADDED("closeToGroundEvent", TYPE_STRUCT, "hkbEventProperty", 0)
  368. HK_PATCH_FUNCTION(hkbDetectCloseToGroundModifier_0_to_1)
  369. HK_PATCH_MEMBER_REMOVED("closeToGroundEventId", TYPE_INT, HK_NULL, 0)
  370. HK_PATCH_DEPENDS("hkbEventProperty", 0)
  371. HK_PATCH_DEPENDS("hkbEvent", 0)
  372. HK_PATCH_END()
  373. HK_PATCH_BEGIN("hkbAttachmentSetup", 0, "hkbAttachmentSetup", 1)
  374. HK_PATCH_MEMBER_ADDED("extrapolationTimeStep", TYPE_REAL, HK_NULL, 0)
  375. HK_PATCH_MEMBER_ADDED("fixUpGain", TYPE_REAL, HK_NULL, 0)
  376. HK_PATCH_MEMBER_ADDED("maxLinearDistance", TYPE_REAL, HK_NULL, 0)
  377. HK_PATCH_MEMBER_ADDED("maxAngularDistance", TYPE_REAL, HK_NULL, 0)
  378. HK_PATCH_END()
  379. HK_PATCH_BEGIN("hkbFootIkModifierInternalLegData", 0, "hkbFootIkModifierInternalLegData", 1)
  380. HK_PATCH_MEMBER_REMOVED("verticalError", TYPE_REAL, HK_NULL, 0)
  381. HK_PATCH_MEMBER_REMOVED("hitSomething", TYPE_BYTE, HK_NULL, 0)
  382. HK_PATCH_MEMBER_REMOVED("isPlanted", TYPE_BYTE, HK_NULL, 0)
  383. HK_PATCH_END()
  384. HK_PATCH_BEGIN("hkbLookAtModifier", 0, "hkbLookAtModifier", 1)
  385. HK_PATCH_MEMBER_REMOVED("lookUp", TYPE_BYTE, HK_NULL, 0)
  386. HK_PATCH_MEMBER_REMOVED("lookUpAngleDegrees", TYPE_REAL, HK_NULL, 0)
  387. HK_PATCH_MEMBER_ADDED("individualLimitsOn", TYPE_BYTE, HK_NULL, 0)
  388. HK_PATCH_MEMBER_ADDED("limitAngleLeft", TYPE_REAL, HK_NULL, 0)
  389. HK_PATCH_MEMBER_ADDED("limitAngleRight", TYPE_REAL, HK_NULL, 0)
  390. HK_PATCH_MEMBER_ADDED("limitAngleUp", TYPE_REAL, HK_NULL, 0)
  391. HK_PATCH_MEMBER_ADDED("limitAngleDown", TYPE_REAL, HK_NULL, 0)
  392. HK_PATCH_FUNCTION(hkbLookAtModifier_0_to_1)
  393. HK_PATCH_END()
  394. HK_PATCH_BEGIN("hkbVariableBindingSetBinding", 0, "hkbVariableBindingSetBinding", 1)
  395. HK_PATCH_MEMBER_ADDED("bindingType", TYPE_INT, HK_NULL, 0)
  396. HK_PATCH_FUNCTION(hkbVariableBindingSetBinding_0_to_1)
  397. HK_PATCH_MEMBER_REMOVED("object", TYPE_OBJECT, "hkReferencedObject", 0)
  398. HK_PATCH_DEPENDS("hkBaseObject", 0)
  399. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  400. HK_PATCH_DEPENDS("hkbVariableBindingSet", 0)
  401. // The following should include all class that existed in version 0 and were made subclasses of hkbBindable in version 1.
  402. // It also includes any objects that were converted to using hkbBoneIndexArray or hkbBoneWeightArray.
  403. HK_PATCH_DEPENDS("hkbNode", 1)
  404. HK_PATCH_DEPENDS("hkbJigglerGroup", 1)
  405. HK_PATCH_DEPENDS("hkbBlenderGeneratorChild", 1)
  406. HK_PATCH_DEPENDS("hkbRegisteredGenerator", 1)
  407. HK_PATCH_DEPENDS("hkbPoweredRagdollControlsModifier", 1)
  408. HK_PATCH_DEPENDS("hkbKeyframeBonesModifier", 1)
  409. HK_PATCH_DEPENDS("hkbRigidBodyRagdollModifier", 1)
  410. HK_PATCH_END()
  411. HK_PATCH_BEGIN("hkbVariableBindingSet", 0, "hkbVariableBindingSet", 1 )
  412. HK_PATCH_FUNCTION(hkbVariableBindingSet_0_to_1)
  413. HK_PATCH_DEPENDS("hkbVariableBindingSetBinding", 1)
  414. HK_PATCH_END()
  415. HK_PATCH_BEGIN("hkbNode", 0, "hkbNode", 1)
  416. HK_PATCH_MEMBER_RENAMED( "variableBindingSet", "old_variableBindingSet" )
  417. HK_PATCH_PARENT_SET("hkReferencedObject", "hkbBindable")
  418. HK_PATCH_FUNCTION(hkbNode_0_to_1)
  419. HK_PATCH_MEMBER_REMOVED("old_variableBindingSet", TYPE_OBJECT, "hkbVariableBindingSet", 0)
  420. HK_PATCH_DEPENDS("hkbVariableBindingSet", 0)
  421. HK_PATCH_DEPENDS("hkbBindable", 0)
  422. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  423. HK_PATCH_END()
  424. HK_PATCH_BEGIN("hkbHandIkModifierHand", 0, "hkbHandIkModifierHand", 1)
  425. HK_PATCH_MEMBER_ADDED("handOffsetLS", TYPE_VEC_4, HK_NULL, 0)
  426. HK_PATCH_MEMBER_ADDED("handOrienationOffsetLS", TYPE_VEC_4, HK_NULL, 0)
  427. HK_PATCH_MEMBER_ADDED("enforceEndPosition", TYPE_BYTE, HK_NULL, 0)
  428. HK_PATCH_MEMBER_ADDED("enforceEndRotation", TYPE_BYTE, HK_NULL, 0)
  429. HK_PATCH_MEMBER_ADDED("localFrameName", TYPE_CSTRING, HK_NULL, 0)
  430. HK_PATCH_FUNCTION(hkbHandIkModifierHand_0_to_1)
  431. HK_PATCH_END()
  432. HK_PATCH_BEGIN("hkbVariableInfo", 0, "hkbVariableInfo", 1)
  433. HK_PATCH_MEMBER_REMOVED("initialValue", TYPE_STRUCT, "hkbVariableValue", 0)
  434. HK_PATCH_MEMBER_ADDED("role", TYPE_STRUCT, "hkbRoleAttribute", 0)
  435. HK_PATCH_DEPENDS("hkbVariableValue", 0)
  436. HK_PATCH_DEPENDS("hkbRoleAttribute", 0)
  437. HK_PATCH_END()
  438. HK_PATCH_BEGIN("hkbPositionRelativeSelectorGenerator", 0, "hkbPositionRelativeSelectorGenerator", 1)
  439. HK_PATCH_MEMBER_ADDED("fixPositionEvent", TYPE_STRUCT, "hkbEventProperty", 0)
  440. HK_PATCH_FUNCTION(hkbPositionRelativeSelectorGenerator_0_to_1)
  441. HK_PATCH_MEMBER_REMOVED("fixPositionEventId", TYPE_INT, HK_NULL, 0)
  442. HK_PATCH_DEPENDS("hkbEventProperty", 0)
  443. HK_PATCH_DEPENDS("hkbEvent", 0)
  444. HK_PATCH_END()
  445. HK_PATCH_BEGIN("hkbCheckRagdollSpeedModifier", 0, "hkbCheckRagdollSpeedModifier", 1)
  446. HK_PATCH_MEMBER_RENAMED("eventToSend", "old_eventToSend")
  447. HK_PATCH_MEMBER_ADDED("eventToSend", TYPE_STRUCT, "hkbEventProperty", 0)
  448. HK_PATCH_FUNCTION(hkbCheckRagdollSpeedModifier_0_to_1)
  449. HK_PATCH_MEMBER_REMOVED("old_eventToSend", TYPE_INT, HK_NULL, 0)
  450. HK_PATCH_DEPENDS("hkbEventProperty", 0)
  451. HK_PATCH_DEPENDS("hkbEvent", 0)
  452. HK_PATCH_END()
  453. HK_PATCH_BEGIN("hkbCharacterData", 0, "hkbCharacterData", 1)
  454. HK_PATCH_MEMBER_ADDED("characterPropertyInfos", TYPE_ARRAY_STRUCT, "hkbVariableInfo", 0)
  455. HK_PATCH_MEMBER_ADDED("characterPropertyValues", TYPE_OBJECT, "hkbVariableValueSet", 0)
  456. HK_PATCH_DEPENDS("hkbVariableInfo", 1)
  457. HK_PATCH_DEPENDS("hkbVariableValueSet", 0)
  458. HK_PATCH_END()
  459. HK_PATCH_BEGIN("hkbFootIkModifierLeg", 0, "hkbFootIkModifierLeg", 1)
  460. HK_PATCH_MEMBER_ADDED("ungroundedEvent", TYPE_STRUCT, "hkbEventProperty", 0)
  461. HK_PATCH_FUNCTION(hkbFootIkModifierLeg_0_to_1)
  462. HK_PATCH_MEMBER_ADDED("verticalError", TYPE_REAL, HK_NULL, 0)
  463. HK_PATCH_MEMBER_ADDED("hitSomething", TYPE_BYTE, HK_NULL, 0)
  464. HK_PATCH_MEMBER_ADDED("isPlantedMS", TYPE_BYTE, HK_NULL, 0)
  465. HK_PATCH_MEMBER_REMOVED("ungroundedEventId", TYPE_INT, HK_NULL, 0)
  466. HK_PATCH_DEPENDS("hkbEventProperty", 0)
  467. HK_PATCH_DEPENDS("hkbEvent", 0)
  468. HK_PATCH_END()
  469. HK_PATCH_BEGIN("hkbClipTrigger", 0, "hkbClipTrigger", 1)
  470. HK_PATCH_MEMBER_RENAMED("event", "old_event")
  471. HK_PATCH_MEMBER_ADDED("event", TYPE_STRUCT, "hkbEventProperty", 0)
  472. HK_PATCH_FUNCTION(hkbClipTrigger_0_to_1)
  473. HK_PATCH_MEMBER_REMOVED("old_event", TYPE_STRUCT, "hkbEvent", 0)
  474. HK_PATCH_DEPENDS("hkbEvent", 0)
  475. HK_PATCH_DEPENDS("hkbEventProperty", 0)
  476. HK_PATCH_END()
  477. HK_PATCH_BEGIN("hkbClipGenerator", 0, "hkbClipGenerator", 1)
  478. HK_PATCH_MEMBER_RENAMED("triggers", "old_triggers")
  479. HK_PATCH_MEMBER_ADDED("triggers", TYPE_OBJECT, "hkbClipTriggerArray", 0)
  480. HK_PATCH_MEMBER_ADDED("animationBindingIndex", TYPE_INT, HK_NULL, 0)
  481. HK_PATCH_FUNCTION(hkbClipGenerator_0_to_1)
  482. HK_PATCH_MEMBER_REMOVED("old_triggers", TYPE_ARRAY_STRUCT, "hkbClipTrigger", 0)
  483. HK_PATCH_DEPENDS("hkbClipTrigger", 0)
  484. HK_PATCH_DEPENDS("hkbClipTriggerArray", 0)
  485. HK_PATCH_END()
  486. HK_PATCH_BEGIN("hkbFootIkModifier", 0, "hkbFootIkModifier", 1)
  487. HK_PATCH_MEMBER_ADDED("verticalOffset", TYPE_REAL, HK_NULL, 0)
  488. HK_PATCH_END()
  489. HK_PATCH_BEGIN("hkbCatchFallModifier", 0, "hkbCatchFallModifier", 1)
  490. HK_PATCH_MEMBER_RENAMED("spineIndices", "old_spineIndices")
  491. HK_PATCH_MEMBER_ADDED("spineIndices", TYPE_OBJECT, "hkbBoneIndexArray", 0)
  492. HK_PATCH_MEMBER_ADDED("catchFallDoneEvent", TYPE_STRUCT, "hkbEventProperty", 0)
  493. HK_PATCH_FUNCTION(hkbCatchFallModifier_0_to_1)
  494. HK_PATCH_MEMBER_REMOVED("old_spineIndices", TYPE_ARRAY_INT, HK_NULL, 0)
  495. HK_PATCH_MEMBER_REMOVED("catchFallDoneEventId", TYPE_INT, HK_NULL, 0)
  496. HK_PATCH_DEPENDS("hkbEventProperty", 0)
  497. HK_PATCH_DEPENDS("hkbBoneIndexArray", 0)
  498. HK_PATCH_DEPENDS("hkbEvent", 0)
  499. HK_PATCH_END()
  500. HK_PATCH_BEGIN("hkbStateMachineStateInfo", 0, "hkbStateMachineStateInfo", 1)
  501. HK_PATCH_PARENT_SET(HK_NULL, "hkReferencedObject")
  502. HK_PATCH_MEMBER_RENAMED("enterNotifyEvent", "old_enterNotifyEvent")
  503. HK_PATCH_MEMBER_ADDED("enterNotifyEvent", TYPE_STRUCT, "hkbEventProperty", 0)
  504. HK_PATCH_MEMBER_RENAMED("exitNotifyEvent", "old_exitNotifyEvent")
  505. HK_PATCH_MEMBER_ADDED("exitNotifyEvent", TYPE_STRUCT, "hkbEventProperty", 0)
  506. HK_PATCH_MEMBER_ADDED("listeners", TYPE_ARRAY_OBJECT, "hkbStateListener", 0)
  507. HK_PATCH_FUNCTION(hkbStateMachineStateInfo_0_to_1)
  508. HK_PATCH_MEMBER_REMOVED("old_enterNotifyEvent", TYPE_STRUCT, "hkbEvent", 0)
  509. HK_PATCH_MEMBER_REMOVED("old_exitNotifyEvent", TYPE_STRUCT, "hkbEvent", 0)
  510. HK_PATCH_MEMBER_REMOVED("inPackfile", TYPE_BYTE, HK_NULL, 0)
  511. HK_PATCH_DEPENDS("hkbEvent", 0)
  512. HK_PATCH_DEPENDS("hkbEventProperty", 0)
  513. HK_PATCH_DEPENDS("hkbStateListener", 0)
  514. HK_PATCH_END()
  515. HK_PATCH_BEGIN("hkbBehaviorGraphData", 0, "hkbBehaviorGraphData", 1)
  516. HK_PATCH_MEMBER_ADDED("characterPropertyInfos", TYPE_ARRAY_STRUCT, "hkbVariableInfo", 0)
  517. HK_PATCH_MEMBER_ADDED("variableInitialValues", TYPE_OBJECT, "hkbVariableValueSet", 0)
  518. HK_PATCH_FUNCTION(hkbBehaviorGraphData_0_to_1)
  519. HK_PATCH_MEMBER_REMOVED("quadVariableInitialValues", TYPE_ARRAY_VEC_4, HK_NULL, 0)
  520. HK_PATCH_DEPENDS("hkbVariableInfo", 0)
  521. HK_PATCH_DEPENDS("hkbVariableValueSet", 0)
  522. HK_PATCH_END()
  523. HK_PATCH_BEGIN("hkbStateMachineTransitionInfo", 0, "hkbStateMachineTransitionInfo", 1)
  524. HK_PATCH_MEMBER_RENAMED("predicate", "condition")
  525. HK_PATCH_DEPENDS("hkBaseObject", 0)
  526. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  527. HK_PATCH_DEPENDS("hkbCondition", 0)
  528. HK_PATCH_END()
  529. HK_PATCH_BEGIN("hkbPoweredRagdollControlsModifier", 0, "hkbPoweredRagdollControlsModifier", 1)
  530. HK_PATCH_MEMBER_RENAMED("boneWeights", "old_boneWeights")
  531. HK_PATCH_MEMBER_ADDED("boneWeights", TYPE_OBJECT, "hkbBoneWeightArray", 0)
  532. HK_PATCH_FUNCTION(hkbPoweredRagdollControlsModifier_0_to_1)
  533. HK_PATCH_MEMBER_REMOVED("old_boneWeights", TYPE_ARRAY_REAL, HK_NULL, 0)
  534. HK_PATCH_DEPENDS("hkbBoneWeightArray", 0)
  535. HK_PATCH_END()
  536. HK_PATCH_BEGIN("hkbStateMachine", 0, "hkbStateMachine", 1)
  537. HK_PATCH_MEMBER_ADDED("wildcardTransitions", TYPE_OBJECT, "hkbStateMachineTransitionInfoArray", 0)
  538. HK_PATCH_FUNCTION(hkbStateMachine_0_to_1)
  539. HK_PATCH_MEMBER_REMOVED("globalTransitions", TYPE_ARRAY_STRUCT, "hkbStateMachineTransitionInfo", 0)
  540. HK_PATCH_DEPENDS("hkbStateMachineTransitionInfo", 0)
  541. HK_PATCH_DEPENDS("hkbStateMachineTransitionInfoArray", 0)
  542. HK_PATCH_END()
  543. HK_PATCH_BEGIN("hkbKeyframeBonesModifier", 0, "hkbKeyframeBonesModifier", 1)
  544. HK_PATCH_MEMBER_RENAMED("keyframedBonesList", "old_keyframedBonesList")
  545. HK_PATCH_MEMBER_ADDED("keyframedBonesList", TYPE_OBJECT, "hkbBoneIndexArray", 0)
  546. HK_PATCH_FUNCTION(hkbKeyframeBonesModifier_0_to_1)
  547. HK_PATCH_MEMBER_REMOVED("old_keyframedBonesList", TYPE_ARRAY_INT, HK_NULL, 0)
  548. HK_PATCH_DEPENDS("hkbBoneIndexArray", 0)
  549. HK_PATCH_END()
  550. HK_PATCH_BEGIN("hkbBlenderGeneratorChild", 0, "hkbBlenderGeneratorChild", 1)
  551. HK_PATCH_PARENT_SET("hkReferencedObject", "hkbBindable")
  552. HK_PATCH_MEMBER_RENAMED("boneWeights", "old_boneWeights")
  553. HK_PATCH_MEMBER_ADDED("boneWeights", TYPE_OBJECT, "hkbBoneWeightArray", 0)
  554. HK_PATCH_FUNCTION(hkbBlenderGeneratorChild_0_to_1)
  555. HK_PATCH_MEMBER_REMOVED("old_boneWeights", TYPE_ARRAY_REAL, HK_NULL, 0)
  556. HK_PATCH_DEPENDS("hkbBoneWeightArray", 0)
  557. HK_PATCH_DEPENDS("hkbBindable", 0)
  558. HK_PATCH_END()
  559. HK_PATCH_BEGIN("hkbRigidBodyRagdollModifier", 0, "hkbRigidBodyRagdollModifier", 1)
  560. HK_PATCH_MEMBER_RENAMED("keyframedBonesList", "old_keyframedBonesList")
  561. HK_PATCH_MEMBER_ADDED("keyframedBonesList", TYPE_OBJECT, "hkbBoneIndexArray", 0)
  562. HK_PATCH_FUNCTION(hkbRigidBodyRagdollModifier_0_to_1)
  563. HK_PATCH_MEMBER_REMOVED("old_keyframedBonesList", TYPE_ARRAY_INT, HK_NULL, 0)
  564. HK_PATCH_DEPENDS("hkbBoneIndexArray", 0)
  565. HK_PATCH_END()
  566. HK_PATCH_BEGIN("hkbJigglerGroup", 0, "hkbJigglerGroup", 1)
  567. HK_PATCH_PARENT_SET("hkReferencedObject", "hkbBindable")
  568. HK_PATCH_MEMBER_RENAMED("boneIndices", "old_boneIndices")
  569. HK_PATCH_MEMBER_ADDED("boneIndices", TYPE_OBJECT, "hkbBoneIndexArray", 0)
  570. HK_PATCH_FUNCTION(hkbJigglerGroup_0_to_1)
  571. HK_PATCH_MEMBER_REMOVED("old_boneIndices", TYPE_ARRAY_INT, HK_NULL, 0)
  572. HK_PATCH_DEPENDS("hkbBoneIndexArray", 0)
  573. HK_PATCH_DEPENDS("hkbBindable", 0)
  574. HK_PATCH_END()
  575. HK_PATCH_BEGIN("hkbRegisteredGenerator", 0, "hkbRegisteredGenerator", 1)
  576. HK_PATCH_PARENT_SET("hkReferencedObject", "hkbBindable")
  577. HK_PATCH_DEPENDS("hkbBindable", 0)
  578. HK_PATCH_END()
  579. //=======
  580. // 650r1
  581. //=======
  582. HK_PATCH_BEGIN("hkbSillyEventPayload", 0, HK_NULL, HK_CLASS_REMOVED)
  583. HK_PATCH_PARENT_SET("hkbEventPayload", HK_NULL)
  584. HK_PATCH_MEMBER_REMOVED("sillyMessage", TYPE_CSTRING, HK_NULL, 0)
  585. HK_PATCH_MEMBER_REMOVED("sillyGain", TYPE_REAL, HK_NULL, 0)
  586. HK_PATCH_MEMBER_REMOVED("sillyIndex", TYPE_INT, HK_NULL, 0)
  587. HK_PATCH_MEMBER_REMOVED("sillyEnum", TYPE_INT, HK_NULL, 0)
  588. HK_PATCH_DEPENDS("hkbEventPayload", 0)
  589. HK_PATCH_DEPENDS("hkBaseObject", 0)
  590. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  591. HK_PATCH_END()
  592. HK_PATCH_BEGIN("hkbStateMachineStateInfo", 1, "hkbStateMachineStateInfo", 2)
  593. HK_PATCH_PARENT_SET("hkReferencedObject", "hkbBindable")
  594. HK_PATCH_MEMBER_RENAMED("transitions","old_transitions")
  595. HK_PATCH_MEMBER_ADDED("transitions", TYPE_OBJECT, "hkbStateMachineTransitionInfoArray", 0)
  596. HK_PATCH_MEMBER_ADDED("enable", TYPE_BYTE, HK_NULL, 0)
  597. HK_PATCH_DEPENDS("hkbStateMachineTransitionInfo", 1)
  598. HK_PATCH_DEPENDS("hkbStateMachineTransitionInfoArray", 0)
  599. HK_PATCH_FUNCTION(hkbStateMachineStateInfo_1_to_2)
  600. HK_PATCH_MEMBER_REMOVED("old_transitions", TYPE_ARRAY_STRUCT, "hkbStateMachineTransitionInfo", 0)
  601. HK_PATCH_END()
  602. HK_PATCH_BEGIN("hkbRotateCharacterModifier", 0, "hkbRotateCharacterModifier", 1)
  603. HK_PATCH_MEMBER_ADDED("speedMultiplier", TYPE_REAL, HK_NULL, 0)
  604. HK_PATCH_END()
  605. HK_PATCH_BEGIN("hkbCompiledExpressionSet", 0, "hkbCompiledExpressionSet", 1)
  606. HK_PATCH_MEMBER_ADDED("expressionToRpnIndex", TYPE_ARRAY_INT, HK_NULL, 0)
  607. HK_PATCH_END()
  608. HK_PATCH_BEGIN("hkbCharacterData", 1, "hkbCharacterData", 2)
  609.         HK_PATCH_MEMBER_ADDED("scale", TYPE_REAL, HK_NULL, 0)
  610. HK_PATCH_END()
  611. HK_PATCH_BEGIN("hkbDemoConfigStickVariableInfo", 0, "hkbDemoConfigStickVariableInfo", 1)
  612. HK_PATCH_MEMBER_ADDED("minStickValue", TYPE_REAL, HK_NULL, 0)
  613. HK_PATCH_MEMBER_ADDED("maxStickValue", TYPE_REAL, HK_NULL, 0)
  614. HK_PATCH_MEMBER_ADDED("stickAxis", TYPE_INT, HK_NULL, 0)
  615. HK_PATCH_MEMBER_ADDED("stick", TYPE_INT, HK_NULL, 0)
  616. HK_PATCH_MEMBER_ADDED("complimentVariableValue", TYPE_BYTE, HK_NULL, 0)
  617. HK_PATCH_MEMBER_ADDED("negateVariableValue", TYPE_BYTE, HK_NULL, 0)
  618. HK_PATCH_FUNCTION(hkbDemoConfigStickVariableInfo_0_to_1)
  619. HK_PATCH_END()
  620. HK_PATCH_BEGIN("hkbDemoConfig", 0, "hkbDemoConfig", 1)
  621. HK_PATCH_MEMBER_RENAMED("stickVariables", "old_stickVariables")
  622. HK_PATCH_MEMBER_ADDED("stickVariables", TYPE_TUPLE_STRUCT, "hkbDemoConfigStickVariableInfo", 12)
  623. HK_PATCH_FUNCTION(hkbDemoConfig_0_to_1)
  624. HK_PATCH_MEMBER_REMOVED("old_stickVariables", TYPE_TUPLE_STRUCT, "hkbDemoConfigStickVariableInfo", 4)
  625. HK_PATCH_DEPENDS("hkbDemoConfigStickVariableInfo", 0)
  626. HK_PATCH_END()
  627. HK_PATCH_BEGIN("hkbProxyModifier", 0, "hkbProxyModifier", 1)
  628. HK_PATCH_MEMBER_ADDED("includeDownwardMomentum", TYPE_BYTE, HK_NULL, 0)
  629. HK_PATCH_MEMBER_ADDED("followWorldFromModel", TYPE_BYTE, HK_NULL, 0)
  630. HK_PATCH_MEMBER_ADDED("isTouchingGround", TYPE_BYTE, HK_NULL, 0)
  631. HK_PATCH_FUNCTION(hkbProxyModifier_0_to_1)
  632. HK_PATCH_END()
  633. HK_PATCH_BEGIN("hkbDampingModifier", 0, "hkbDampingModifier", 1)
  634. HK_PATCH_MEMBER_ADDED("enableScalarDamping", TYPE_BYTE, HK_NULL, 0)
  635. HK_PATCH_MEMBER_ADDED("enableVectorDamping", TYPE_BYTE, HK_NULL, 0)
  636. HK_PATCH_MEMBER_ADDED("rawVector", TYPE_VEC_4, HK_NULL, 0)
  637. HK_PATCH_MEMBER_ADDED("dampedVector", TYPE_VEC_4, HK_NULL, 0)
  638. HK_PATCH_MEMBER_ADDED("vecErrorSum", TYPE_VEC_4, HK_NULL, 0)
  639. HK_PATCH_MEMBER_ADDED("vecPreviousError", TYPE_VEC_4, HK_NULL, 0)
  640. HK_PATCH_FUNCTION(hkbDampingModifier_0_to_1)
  641. HK_PATCH_END()
  642. HK_PATCH_BEGIN("hkbVariableBindingSet", 1, "hkbVariableBindingSet", 2)
  643.         HK_PATCH_MEMBER_ADDED("indexOfBindingToEnable", TYPE_INT, HK_NULL, 0)
  644. HK_PATCH_FUNCTION(hkbVariableBindingSet_1_to_2)
  645. HK_PATCH_END()
  646. /*
  647. * Havok SDK - NO SOURCE PC DOWNLOAD, BUILD(#20090216)
  648. * Confidential Information of Havok.  (C) Copyright 1999-2009
  649. * Telekinesys Research Limited t/a Havok. All Rights Reserved. The Havok
  650. * Logo, and the Havok buzzsaw logo are trademarks of Havok.  Title, ownership
  651. * rights, and intellectual property rights in the Havok software remain in
  652. * Havok and/or its suppliers.
  653. * Use of this software for evaluation purposes is subject to and indicates
  654. * acceptance of the End User licence Agreement for this product. A copy of
  655. * the license is included with this software and is also available at www.havok.com/tryhavok.
  656. */