Infinite Runner Engine v1.9
Public Types | Public Member Functions | Public Attributes | List of all members
MoreMountains.InfiniteRunnerEngine.ScenarioEvent Class Reference

This class describes an item in the scenario. More...

Public Types

enum  ScenarioEventTypes { ScoreBased , TimeBased }
 

Public Member Functions

 ScenarioEvent (float startScore, float startTime, Action scenarioEventAction, string eventName, ScenarioEventTypes scenarioEventType)
 Initializes a new instance of the ScenarioEvent class. More...
 

Public Attributes

ScenarioEventTypes ScenarioEventType
 Is this scenario event triggered when a certain time is reached, or when a certain score is reached ? More...
 
float StartTime
 the time in seconds at which this event should be triggered More...
 
float StartScore
 the score at which this event is triggered More...
 
bool Status
 if true, this event will be triggered by the RunScenario method, then put to false More...
 
string MMEventName
 the name of the MMEvent to trigger More...
 
Action ScenarioEventAction
 the action to trigger More...
 

Detailed Description

This class describes an item in the scenario.

Member Enumeration Documentation

◆ ScenarioEventTypes

Enumerator
ScoreBased 
TimeBased 

Constructor & Destructor Documentation

◆ ScenarioEvent()

MoreMountains.InfiniteRunnerEngine.ScenarioEvent.ScenarioEvent ( float  startScore,
float  startTime,
Action  scenarioEventAction,
string  eventName,
ScenarioEventTypes  scenarioEventType 
)

Initializes a new instance of the ScenarioEvent class.

Parameters
startTimethe time in seconds at which this event should be triggered.
statusIf set to true, this event will be triggered by the RunScenario method, then put to false.
scenarioItemActionScenario event action.

Member Data Documentation

◆ MMEventName

string MoreMountains.InfiniteRunnerEngine.ScenarioEvent.MMEventName

the name of the MMEvent to trigger

◆ ScenarioEventAction

Action MoreMountains.InfiniteRunnerEngine.ScenarioEvent.ScenarioEventAction

the action to trigger

◆ ScenarioEventType

ScenarioEventTypes MoreMountains.InfiniteRunnerEngine.ScenarioEvent.ScenarioEventType

Is this scenario event triggered when a certain time is reached, or when a certain score is reached ?

◆ StartScore

float MoreMountains.InfiniteRunnerEngine.ScenarioEvent.StartScore

the score at which this event is triggered

◆ StartTime

float MoreMountains.InfiniteRunnerEngine.ScenarioEvent.StartTime

the time in seconds at which this event should be triggered

◆ Status

bool MoreMountains.InfiniteRunnerEngine.ScenarioEvent.Status

if true, this event will be triggered by the RunScenario method, then put to false


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