class MAGES::Analytics::AnalyticsScriptableObject¶
Overview¶
Scriptable object that stores per action analytics. More…
class AnalyticsScriptableObject: public ScriptableObject { public: // properties float ActionsScore; SerializableDictionaryAnalyticsTypes.BaseType> AllObjects; SerializableDictionary AnalyticsTypes.TimeLimit> TimeLimitObjects; SerializableDictionary AnalyticsTypes.ScoreLimit> ScoreLimitObjects; SerializableDictionary AnalyticsTypes.ErrorCollider> ErrorColliderObjects; SerializableDictionary AnalyticsTypes.InteractionRestriction> InteractionRestrictionObjects; SerializableDictionary AnalyticsTypes.RotationRestriction> RotationRestrictionObjects; SerializableDictionary AnalyticsTypes.RangeOfMotionLimit> RangeOfMotionLimitObjects; SerializableDictionary AnalyticsTypes.ErrorAngle> ErrorAngleObjects; SerializableDictionary AnalyticsTypes.PerformedWrongAction> PerformedWrongActionObjects; SerializableDictionary AnalyticsTypes.DidNotPerformRequiredAction> DidNotPerformRequiredActionObjects; SerializableDictionary AnalyticsTypes.CustomType> CustomTypeObjects; SerializableDictionary AnalyticsTypes.WrongAnswer> WrongAnswerObjects; // methods List GetDictionaryKeys(string name); int GetDictionaryCount(string name); void Invalidate(AnalyticsTypes.BaseType baseEvent); void Delete(AnalyticsTypes.BaseType baseEvent); void Rename( AnalyticsTypes.BaseType baseEvent, string oldName, string newName, AnalyticsTypes.Type type ); };
Detailed Documentation¶
Scriptable object that stores per action analytics.
Properties¶
float ActionsScore
Gets or sets the action score.
SerializableDictionaryAnalyticsTypes.BaseType> AllObjects
Gets or sets the disctionary holding all the analytics objects.
SerializableDictionaryAnalyticsTypes.TimeLimit> TimeLimitObjects
Gets or sets the disctionary holding all the TimeLimit objects.
SerializableDictionaryAnalyticsTypes.ScoreLimit> ScoreLimitObjects
Gets or sets the disctionary holding all the ScoreLimit objects.
SerializableDictionaryAnalyticsTypes.ErrorCollider> ErrorColliderObjects
Gets or sets the disctionary holding all the ErrorCollider objects.
SerializableDictionaryAnalyticsTypes.InteractionRestriction> InteractionRestrictionObjects
Gets or sets the disctionary holding all the InteractionRestriction objects.
SerializableDictionaryAnalyticsTypes.RotationRestriction> RotationRestrictionObjects
Gets or sets the disctionary holding all the RotationRestriction objects.
SerializableDictionaryAnalyticsTypes.RangeOfMotionLimit> RangeOfMotionLimitObjects
Gets or sets the disctionary holding all the RangeOfMotionLimit objects.
SerializableDictionaryAnalyticsTypes.ErrorAngle> ErrorAngleObjects
Gets or sets the disctionary holding all the ErrorAngle objects.
SerializableDictionaryAnalyticsTypes.PerformedWrongAction> PerformedWrongActionObjects
Gets or sets the disctionary holding all the PerformedWrongAction objects.
SerializableDictionaryAnalyticsTypes.DidNotPerformRequiredAction> DidNotPerformRequiredActionObjects
Gets or sets the disctionary holding all the DidNotPerformRequiredAction objects.
SerializableDictionaryAnalyticsTypes.CustomType> CustomTypeObjects
Gets or sets the disctionary holding all the DidNotPerformRequiredAction objects.
SerializableDictionaryAnalyticsTypes.WrongAnswer> WrongAnswerObjects
Gets or sets the disctionary holding all the WrongAnswer objects.
Methods¶
ListGetDictionaryKeys(string name)
Return the size of the dictionary of the given internal type.
Parameters:
name |
The name of dictionary internal type. |
Returns:
The size of the dictionary of the given internal type.
int GetDictionaryCount(string name)
Return the size of the dictionary of the given internal type.
Parameters:
name |
The name of dictionary internal type. |
Returns:
The size of the dictionary of the given internal type.
void Invalidate(AnalyticsTypes.BaseType baseEvent)
Invalidates the given analytics object with new values.
Parameters:
baseEvent |
The analytics object to invalidate. |
void Delete(AnalyticsTypes.BaseType baseEvent)
Deletes the given analytics object.
Parameters:
baseEvent |
The analytics object to be deleted. |
void Rename( AnalyticsTypes.BaseType baseEvent, string oldName, string newName, AnalyticsTypes.Type type )
Renames an analytics object of specific name and type.
Parameters:
baseEvent |
The analytics object to be renamed. |
oldName |
The current name of the analytics object. |
newName |
The new name of the analytics object. |
type |
The type of the analytics object(Error or Objective). |