Files
You-Are-A-CEO/DaySchedule.cs
2026-07-29 18:50:14 +02:00

25 lines
505 B
C#

using System.Linq;
using Godot;
[SceneTree]
public partial class DaySchedule : PanelContainer
{
[Export]
private Company _company;
[Export]
private int _hoursInDay = 6;
public override void _Ready()
{
TimeSlotContainer.GetChildren().ToList().ForEach(child => child.QueueFree());
for (var i = 0; i < _hoursInDay; i++)
{
var timeSlot = Instantiator.Instantiate<TimeSlot>();
TimeSlotContainer.AddChild(timeSlot);
}
}
}