Impact Interaction System API
Impact.Materials.ImpactMaterialInteractionSet Class Reference

Contains a list of interactions and filters for using the interactions. More...

Classes

struct  TagMaskFilter
 Filter for comparing tag masks. More...
 

Public Member Functions

bool CompareTagMaskFilters (ImpactTagMask tagMask)
 Compares the given tag mask to the include and exclude tag filters. More...
 
void Preload ()
 Preload any needed data or objects.
 
void AddInteraction (ImpactInteractionBase impactInteraction)
 Adds a new interaction. More...
 
void RemoveInteraction (int index)
 Removes the interaction at the given index. More...
 

Properties

string Name [get, set]
 User-friendly name for this interaction set.
 
TagMaskFilter IncludeTagsFilter [get, set]
 Tags that should be matched for this interaction set to be used.
 
TagMaskFilter ExcludeTagsFilter [get, set]
 Tags that, if matched, will cause this interaction set to be ignored.
 
int InteractionCount [get]
 The number of interactions this set contains.
 
ImpactInteractionBase this[int index] [get, set]
 

Detailed Description

Contains a list of interactions and filters for using the interactions.

Member Function Documentation

◆ AddInteraction()

void Impact.Materials.ImpactMaterialInteractionSet.AddInteraction ( ImpactInteractionBase  impactInteraction)

Adds a new interaction.

Parameters
index

◆ CompareTagMaskFilters()

bool Impact.Materials.ImpactMaterialInteractionSet.CompareTagMaskFilters ( ImpactTagMask  tagMask)

Compares the given tag mask to the include and exclude tag filters.

Parameters
tagMaskThe tag mask to compare.
Returns
True if the tag mask passes the filters, false otherwise.

◆ RemoveInteraction()

void Impact.Materials.ImpactMaterialInteractionSet.RemoveInteraction ( int  index)

Removes the interaction at the given index.

Parameters
index