Project Arrhythmia
A video game developed by Vitamin Games.
Loading...
Searching...
No Matches
DataManager.GameData.EventKeyframe Class Reference

Public Member Functions

void UpdateActive (bool _new)
 
bool ShouldSerializeCurveType ()
 
bool ShouldSerializeStrVals ()
 
void AddVal (string _new)
 
void AddVal (float _new)
 
void SetVals (List< float > _new)
 
void SetVals (List< string > _new)
 
bool ShouldSerializeActiveVals ()
 
bool ShouldSerializeRandVals ()
 
 EventKeyframe (float _time)
 
 EventKeyframe (float _time, List< bool > _actives, List< float > _values, List< float > _valuesR, int _random=0)
 
 EventKeyframe (List< bool > _actives, List< float > _values, List< float > _valuesR, int _random=0)
 
void SetVal (int _index, float _value)
 
void SetValStr (int _index, string _value)
 
float GetVal (int _index, float _default=0f)
 
bool ValExists (int _index)
 
string GetValStr (int _index, string _default)
 
void SetActiveVal (int _index, bool _value)
 
bool GetActiveVal (int _index, bool _default=true)
 
void SetRandVal (int _index, float _value)
 
float GetRandVal (int _index, float _default=0f)
 

Static Public Member Functions

static int KeyframeOffsetFromTime (float _time)
 
static float TimeFromKeyframeOffset (int _offset)
 
static float ClampToKeyframeOffset (float _time)
 
static EventKeyframe DeepCopy (EventKeyframe orig, bool _newID=true)
 

Public Attributes

string ID
 
bool active = false
 
LSAnimation CurveType = DataManager.inst.AnimationListDictionaryStr[DEFAULT_ANIMATION]
 
List< float > _eventValues = new List<float> { }
 
List< string > _eventValuesStr = new List<string> { }
 

Protected Attributes

float _time = 0f
 
int _keyframeOffset = 0
 

Properties

float Time [get, set]
 
int KeyframeOffset [get, set]
 
int Random [get, set]
 
List< float > Vals [get]
 
List< string > StrVals [get]
 
List< bool > ActiveVals [get, set]
 
List< float > RandVals [get, set]
 

Private Attributes

int _random = 0
 
List< bool > _eventValuesActive = new List<bool> { }
 
List< float > _eventRandomValues = new List<float> { }
 

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