Loading...
Searching...
No Matches
AdventureCore.GenericTriggerItem Class Reference

Detailed Description

simple generic version of trigger item, counterpart to GenericTriggerArea
this one is most likely situated on the character while the area is some part of the level

https://adventure.softleitner.com/manual

Inheritance diagram for AdventureCore.GenericTriggerItem:
AdventureCore.TriggerItem< GenericTriggerArea, GenericTriggerItem > AdventureCore.ICharacterAssociator

Public Attributes

UnityEvent Started
 
CharacterBase Character
 
string Key
 
UnityEvent< CharacterBaseCharacterAdded
 
UnityEvent< CharacterBaseCharacterRemoved
 
CharacterInstructionBase[] Instructions
 
- Public Attributes inherited from AdventureCore.TriggerItem< GenericTriggerArea, GenericTriggerItem >
UnityEvent< TArea > AreaAdded
 
UnityEvent< TArea > AreaRemoved
 

Protected Member Functions

override void onAreaAdded (GenericTriggerArea area)
 
override void onAreaRemoved (GenericTriggerArea area)
 
- Protected Member Functions inherited from AdventureCore.TriggerItem< GenericTriggerArea, GenericTriggerItem >
virtual void OnEnable ()
 
virtual void OnDisable ()
 
virtual void onAreaAdded (TArea area)
 
virtual void onAreaRemoved (TArea area)
 

Properties

string[] Keys [get]
 
CharacterBase AssociatedCharacter [get]
 character that owns or is otherwise associted with the object
 
- Properties inherited from AdventureCore.TriggerItem< GenericTriggerArea, GenericTriggerItem >
IReadOnlyList< TArea > Areas [get]
 
- Properties inherited from AdventureCore.ICharacterAssociator

Additional Inherited Members

- Public Member Functions inherited from AdventureCore.TriggerItem< GenericTriggerArea, GenericTriggerItem >
virtual void AddArea (TArea area)
 
virtual void RemoveArea (TArea area)
 
- Protected Attributes inherited from AdventureCore.TriggerItem< GenericTriggerArea, GenericTriggerItem >
List< TArea > _areas
 

Property Documentation

◆ AssociatedCharacter

CharacterBase AdventureCore.GenericTriggerItem.AssociatedCharacter
get

character that owns or is otherwise associted with the object

Implements AdventureCore.ICharacterAssociator.