/// <summary> /// Adds a custom property to the recording, so you can sync other (non-input) events as well. /// eg: doors opening, enemy spawning, etc /// </summary> /// <param name='propertyName'> /// Property name. /// </param> /// <param name='propertyValue'> /// Property value. /// </param> public void SyncProperty(string propertyName, string propertyValue) { // duplicates dealt with when recorded var frameProp = new Recording.FrameProperty(propertyName, propertyValue); if (!nextPropertiesToRecord.Contains(frameProp)) { nextPropertiesToRecord.Enqueue(frameProp); } }
/// <summary> /// Adds a custom property to the recording, so you can sync other (non-input) events as well. /// eg: doors opening, enemy spawning, etc /// </summary> /// <param name='propertyName'> /// Property name. /// </param> /// <param name='propertyValue'> /// Property value. /// </param> public void SyncProperty( string propertyName, string propertyValue ) { // duplicates dealt with when recorded var frameProp = new Recording.FrameProperty( propertyName, propertyValue ); if ( !nextPropertiesToRecord.Contains ( frameProp ) ) nextPropertiesToRecord.Enqueue ( frameProp ); }