Ejemplo n.º 1
0
        private Track GetKeyTrack(FEngLib.Scripts.Script script, KeyTrackType trackType)
        {
            uint offset = (uint)trackType;

            return(script.Tracks.Find(e => e.Offset == offset));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Sets the currently running script and resets the script time.
 /// </summary>
 /// <param name="script">The script to run.</param>
 public void SetScript(FEngLib.Scripts.Script script)
 {
     this.CurrentScript     = script;
     this.CurrentScriptTime = script == null ? -1 : 0;
 }