Exemplo n.º 1
0
 public Octave(Storage storage)
 {
     Octave.storage = storage;
     begin          = 24576d;
     end            = 0;
     root           = this;
     id             = "0";
     IsVisible      = storage.GetVisible(id);
     Legend         = storage.GetLegend(id);
 }
Exemplo n.º 2
0
 private Octave(Octave parent, int suffix)
 {
     Parent    = parent;
     id        = parent is null ? "0" : $"{parent.id}-{suffix}";
     IsVisible = storage.GetVisible(id);
     Legend    = storage.GetLegend(id);
     if (suffix == IdOne)
     {
         begin = parent.So;
         end   = parent.Mi;
     }
     else
     {
         begin = parent.Mi;
         end   = parent.end;
     }
 }
Exemplo n.º 3
0
        internal async Task CreateWorld()
        {
            if (IsNext)
            {
                IsNext = false;
            }
            else
            {
                if (Next is null)
                {
                    Next = new() { Level = Level + 1 };
                    await Octave.CreateNext();
                }

                IsNext = true;
            }
        }
    }