EGDL2 2.1
Loading...
Searching...
No Matches
Enablegames.Tracker Class Reference

MonoBehaviour that records the game data. Subscribe game behavior to the tracker by defining a message delegate. See TrackerModule. More...

Inherits MonoBehaviour.

Public Member Functions

void AddModule (OnEventModule module)
 Add a new OnEventModule to track.
 
void AddModule (TrackerModule module)
 Add a new Module to be tracked every tick.
 
void AddTickModule (TrackerModule module)
 Add a new tracker module that is evaluated every tic the tracker runs.
 
void BeginTracking ()
 Start the tracker.
 
void StopTracking ()
 Stop the tracker.
 
void Message (string messageText)
 Default game message.
 
void Message (TrackerMessage message)
 Make a game message with a specified tracker message object.
 
void Message (string key, string messageText)
 Make a game message with a specific key and text.
 
void OnApplicationQuit ()
 Force the tracker to stop tracking when the application exits.
 
void Interrupt (int eventType, string[] tags)
 Methods that track all the modules that are supposed to be tracked by a certain event and objects.
 
void Interrupt (int eventType, string tag)
 Sends an interrupt signal to the Tracker to track modules that require to be tracked on every type of event by a certain object.
 

Static Public Member Functions

static string CurrentTimeStamp ()
 Gets current timestamp, for use in formatting.
 

Detailed Description

MonoBehaviour that records the game data. Subscribe game behavior to the tracker by defining a message delegate. See TrackerModule.

Member Function Documentation

◆ AddModule() [1/2]

void Enablegames.Tracker.AddModule ( OnEventModule module)
inline

Add a new OnEventModule to track.

Parameters
moduleA module that will be track when certains objects triggers certains events
Here is the caller graph for this function:

◆ AddModule() [2/2]

void Enablegames.Tracker.AddModule ( TrackerModule module)
inline

Add a new Module to be tracked every tick.

Parameters
module

◆ AddTickModule()

void Enablegames.Tracker.AddTickModule ( TrackerModule module)
inline

Add a new tracker module that is evaluated every tic the tracker runs.

Parameters
module

◆ CurrentTimeStamp()

static string Enablegames.Tracker.CurrentTimeStamp ( )
inlinestatic

Gets current timestamp, for use in formatting.

Returns

◆ Interrupt() [1/2]

void Enablegames.Tracker.Interrupt ( int eventType,
string tag )
inline

Sends an interrupt signal to the Tracker to track modules that require to be tracked on every type of event by a certain object.

Parameters
eventTypeThe type of event to interrupt. Use the enum egEvent.Type for reference.
tagThe tag associated with the object.
Here is the call graph for this function:

◆ Interrupt() [2/2]

void Enablegames.Tracker.Interrupt ( int eventType,
string[] tags )
inline

Methods that track all the modules that are supposed to be tracked by a certain event and objects.

Parameters
eventType
tag
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Message() [1/3]

void Enablegames.Tracker.Message ( string key,
string messageText )
inline

Make a game message with a specific key and text.

Parameters
keyKey displayed in the tracker data
messageTextText displayed in message
Here is the call graph for this function:

◆ Message() [2/3]

void Enablegames.Tracker.Message ( string messageText)
inline

Default game message.

Parameters
messageTextString to display next to the default message key
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Message() [3/3]

void Enablegames.Tracker.Message ( TrackerMessage message)
inline

Make a game message with a specified tracker message object.

Parameters
messageUsed to specify a specific key and message
Here is the call graph for this function:

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