using Godot; using System; using System.Linq; using Dictionary = Godot.Collections.Dictionary; using Array = Godot.Collections.Array; public class AdaptiveWorldStream : Spatial { // ui elements private Label _tileLabel; private Label _tileOffsetLabel; private Label _numTilesLabel; private Label _mouseWorldLabel; private Label _mouseTileLabel; // scene nodes private Spatial _tileHighlight; private Spatial _mouseTileHighlight; private StreamContainer _streamContainer; private Area _streamContainerArea; private Spatial _streamContainerActiveTiles; private Player _player; // Resources private PackedScene _tileHighlightScene; // other members private HexGrid _hexGrid; private HexCell _lastTile; private HexCell _currentTile; private Vector2 _currentTileOffset; // Called when the node enters the scene tree for the first time. public override void _Ready() { // UI elements _tileLabel = GetNode