Exemple #1
0
 public int GetMasterBarStart(MasterBar bar)
 {
     if (!MasterBarLookup.ContainsKey(bar.Index))
     {
         return(0);
     }
     return(MasterBarLookup[bar.Index].Start);
 }
Exemple #2
0
 public void AddMasterBar(MasterBarTickLookup masterBar)
 {
     MasterBars.Add(masterBar);
     _currentMasterBar = masterBar;
     if (!MasterBarLookup.ContainsKey(masterBar.MasterBar.Index))
     {
         MasterBarLookup[masterBar.MasterBar.Index] = masterBar;
     }
 }
Exemple #3
0
 public MasterBarTickLookup GetMasterBar(MasterBar bar)
 {
     if (!MasterBarLookup.ContainsKey(bar.Index))
     {
         return(new MasterBarTickLookup
         {
             Start = 0,
             End = 0,
             Beats = new FastList <BeatTickLookup>(),
             MasterBar = bar
         });
     }
     return(MasterBarLookup[bar.Index]);
 }