public int GetMasterBarStart(MasterBar bar) { if (!MasterBarLookup.ContainsKey(bar.Index)) { return(0); } return(MasterBarLookup[bar.Index].Start); }
public void AddMasterBar(MasterBarTickLookup masterBar) { MasterBars.Add(masterBar); _currentMasterBar = masterBar; if (!MasterBarLookup.ContainsKey(masterBar.MasterBar.Index)) { MasterBarLookup[masterBar.MasterBar.Index] = masterBar; } }
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]); }