using Godot; using System; using System.Collections.Generic; using System.Linq; public partial class Lab : Node2D { [Flags] public enum MapNodeType { Invalid = 0, Walkable = 1, Wall = 2, Blocker = 4, SeatUp = 8, SeatDown = 16, } private static readonly Rect2I[] wallRectangles = { new(0,0,40,2), new(0,5,1, 15), new(0,20,40,1), new(39,2,1,18), }; private readonly Dictionary _furnitureIDs = new(); public Dictionary Furniture => _furnitureIDs; // Called when the node enters the scene tree for the first time. public override void _Ready() { var ticker = GetNode("/root/GameManager/OneSecondTicker"); Player.Timeline.Attach(ticker); Player.Timeline.Subscribe(DateOnly.Parse("2024/11/20"), Guid.NewGuid()); Player.Timeline.OnEventTriggered += (d, e) => GD.Print($"Timeline event triggered: {d}, {e}"); var label = GetNode