Frame of Reference Game API  1.0.3
Public Member Functions | Properties | List of all members
FrameOfReference.World.Positionables.Trigger Class Reference

Executes Lua scripts on proximity or timers. More...

Inheritance diagram for FrameOfReference.World.Positionables.Trigger:
Positionable< Vector2 >

Public Member Functions

bool IsInRange (Positionable< Vector2 > entity)
 Determines whether an entity is within range of this trigger. More...
 
- Public Member Functions inherited from Positionable< Vector2 >
override string ToString ()
 
virtual Positionable< TCoordinates > Clone ()
 

Properties

float Range [get, set]
 The maximum distance at which an Entity activates this trigger. More...
 
double DueTime [get, set]
 The UniverseBase<T>.GameTime by which this trigger should have been activated. More...
 
string TargetEntity [get, set]
 The name of the Entity whose proximity causes this trigger to activate. More...
 
string OnActivation [get, set]
 A Lua script to execute when TargetEntity gets within Range. More...
 
string OnTimeout [get, set]
 A Lua script to execute if the trigger was not activated by DueTime. More...
 
bool WasTriggered [get, set]
 Indicates whether this trigger has already been triggered by TargetEntity or has timed out. More...
 
string DependsOn [get, set]
 The name of another Trigger that has to be triggered before this one can be. More...
 
- Properties inherited from Positionable< Vector2 >
string Name
 
TCoordinates Position
 

Additional Inherited Members

- Protected Member Functions inherited from Positionable< Vector2 >
virtual void OnChanged ()
 
void OnChangedRebuild ()
 
- Events inherited from Positionable< Vector2 >
Action< Positionable< TCoordinates > > Changed
 
Action< Positionable< TCoordinates > > ChangedRebuild
 

Detailed Description

Executes Lua scripts on proximity or timers.

Member Function Documentation

◆ IsInRange()

bool FrameOfReference.World.Positionables.Trigger.IsInRange ( Positionable< Vector2 >  entity)
inline

Determines whether an entity is within range of this trigger.

Property Documentation

◆ DependsOn

string FrameOfReference.World.Positionables.Trigger.DependsOn
getset

The name of another Trigger that has to be triggered before this one can be.

◆ DueTime

double FrameOfReference.World.Positionables.Trigger.DueTime
getset

The UniverseBase<T>.GameTime by which this trigger should have been activated.

◆ OnActivation

string FrameOfReference.World.Positionables.Trigger.OnActivation
getset

A Lua script to execute when TargetEntity gets within Range.

◆ OnTimeout

string FrameOfReference.World.Positionables.Trigger.OnTimeout
getset

A Lua script to execute if the trigger was not activated by DueTime.

◆ Range

float FrameOfReference.World.Positionables.Trigger.Range
getset

The maximum distance at which an Entity activates this trigger.

◆ TargetEntity

string FrameOfReference.World.Positionables.Trigger.TargetEntity
getset

The name of the Entity whose proximity causes this trigger to activate.

◆ WasTriggered

bool FrameOfReference.World.Positionables.Trigger.WasTriggered
getset

Indicates whether this trigger has already been triggered by TargetEntity or has timed out.


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