29 #ifndef NVBLASTTKEVENT_H 30 #define NVBLASTTKEVENT_H 88 const T*
getPayload()
const {
return reinterpret_cast<const T*
>(payload); }
177 virtual void receive(
const TkEvent* events, uint32_t eventCount) = 0;
184 #endif // ifndef NVBLASTTKEVENT_H Definition: NvBlastTkFamily.h:55
TkJoint * joint
The joint being updated.
Definition: NvBlastTkEvent.h:159
const T * getPayload() const
Definition: NvBlastTkEvent.h:88
const void * payload
Type-dependent payload data.
Definition: NvBlastTkEvent.h:79
Definition: NvBlastTkEvent.h:148
Definition: NvBlastTkEvent.h:65
Definition: NvBlastTkJoint.h:63
Definition: NvBlastTkEvent.h:99
Sent when TkJoints change their attachment state. See TkJointUpdateEvent.
Definition: NvBlastTkEvent.h:73
uint32_t bondsDamaged
number of damaged bonds (health remains)
Definition: NvBlastTkEvent.h:134
Definition: NvBlastTkActor.h:57
Type type
See the Type enum, above.
Definition: NvBlastTkEvent.h:80
uint32_t bondsBroken
number of broken bonds (health exhausted)
Definition: NvBlastTkEvent.h:135
TkFamily * family
TkFamily of the originating TkActor.
Definition: NvBlastTkEvent.h:55
Sent when a TkActor is fractured using TkActor::applyFracture.
Definition: NvBlastTkEvent.h:72
Definition: NvBlastTkEvent.h:114
NvBlastFractureBuffers buffers
The fracture result of the modified TkActor.
Definition: NvBlastTkEvent.h:133
TkActor ** children
An array of pointers to the children into which the TkActor was split.
Definition: NvBlastTkEvent.h:105
Type
Definition: NvBlastTkEvent.h:68
Subtype
Definition: NvBlastTkEvent.h:152
TkActorData tkActorData
The data of TkActor that received the fracture command.
Definition: NvBlastTkEvent.h:132
Definition: NvBlastTkEvent.h:168
A joint that used to be internal to a single TkActor now joins two different TkActors.
Definition: NvBlastTkEvent.h:154
uint32_t index
TkActor::getIndex() of the originating TkActor.
Definition: NvBlastTkEvent.h:57
NvBlastFractureBuffers buffers
The fracture commands used to modify the TkActor.
Definition: NvBlastTkEvent.h:119
TkActorData tkActorData
The data of TkActor that received the fracture command.
Definition: NvBlastTkEvent.h:118
Sent when a TkActor is split. See TkSplitEvent.
Definition: NvBlastTkEvent.h:70
Definition: NvBlastTypes.h:468
Definition: NvBlastTkEvent.h:128
One or both of the joint's attached TkActors has changed. The previous TkActors were distinct...
Definition: NvBlastTkEvent.h:155
Sent when a TkActor generated fracture commands using TkActor::generateFracture.
Definition: NvBlastTkEvent.h:71
Definition: NvBlastTkEvent.h:53
Subtype subtype
The type of update event this is (see Subtype)
Definition: NvBlastTkEvent.h:160
void * userData
TkActor.userData of the originating TkActor.
Definition: NvBlastTkEvent.h:56
uint32_t numChildren
The number of children into which the parent TkActor was split.
Definition: NvBlastTkEvent.h:104
uint32_t chunksDamaged
number of damaged chunks (health remains) including child chunks
Definition: NvBlastTkEvent.h:136
Definition: NvBlastExtAuthoring.h:34
uint32_t chunksBroken
number of broken chunks (health exhausted) including child chunks
Definition: NvBlastTkEvent.h:137
TkActorData parentData
The data of parent TkActor that was split.
Definition: NvBlastTkEvent.h:103