/// <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 SaveProperty(string propertyName, string propertyValue) { // duplicates dealt with when recorded var frameProp = new Recording.FrameProperty(propertyName, propertyValue); if (!nextPropertiesToRecord.Contains(frameProp)) { nextPropertiesToRecord.Enqueue(frameProp); } }
public void AddPropertyToCurrentFrame(Recording.FrameProperty frameProperty) { targetRecording.AddProperty(this.FrameIdx, frameProperty); }