Loading...
Searching...
No Matches
PixelCrushers.LoveHate.AbstractTriggerInteractor Class Referenceabstract

This is the base class for trigger components such as AbstractGreetingTrigger and AbstractGossipTrigger. More...

Inheritance diagram for PixelCrushers.LoveHate.AbstractTriggerInteractor:
Collaboration diagram for PixelCrushers.LoveHate.AbstractTriggerInteractor:

Public Member Functions

virtual FactionMember GetFactionMember (GameObject other)
 Gets the FactionMember on a GameObject.
 

Public Attributes

int cacheSize = 32
 The max size of the cache of other GameObjects to keep track of.
 

Detailed Description

This is the base class for trigger components such as AbstractGreetingTrigger and AbstractGossipTrigger.

Member Function Documentation

◆ GetFactionMember()

virtual FactionMember PixelCrushers.LoveHate.AbstractTriggerInteractor.GetFactionMember ( GameObject  other)
inlinevirtual

Gets the FactionMember on a GameObject.

This method maintains a cache of FactionMember components found on GameObjects and uses the cache when possible. Since characters often bump into the same triggers repeatedly, this significantly reduces the number of calls to GetComponentXXX().

Returns
The FactionMember.
Parameters
otherA GameObject.

Member Data Documentation

◆ cacheSize

int PixelCrushers.LoveHate.AbstractTriggerInteractor.cacheSize = 32

The max size of the cache of other GameObjects to keep track of.


The documentation for this class was generated from the following file: