Ejemplo n.º 1
0
 public void Clear()
 {
     for (var i = 0; i < layer.Length; i++)
     {
         layer[i] = new OverlayCell();
     }
 }
Ejemplo n.º 2
0
        public void Load(Scenario scenario)
        {
            var cells = scenario.Cells;

            for (var i = 0; i < cells.Length; i++)
            {
                var type      = OverlayType.Empty;
                var overlayId = cells[i].overlayId;
                var v         = scenario.Theater.GetOverlay(overlayId);
                if (v != null)
                {
                    type = v.Type;
                }
                layer[i] = new OverlayCell(overlayId, type);
            }

            Initialise(scenario.Bounds);
        }