using Godot; using SupaLidlGame.Characters; using System.Collections.Generic; namespace SupaLidlGame.Utils { public partial class World : Node2D { [Export] public string StartingArea { get; set; } [Export] public string CurrentArea { get; protected set; } [Export] public Player CurrentPlayer { get; set; } private Dictionary maps; private string _currentConnector; public World() { maps = new Dictionary(); } public override void _Ready() { base._Ready(); } public override void _Process(double delta) { base._Process(delta); } public void MoveToArea(string area, string connector) { if (area != CurrentArea) { // remove current map and load in the new map TileMap map = GetNode(CurrentArea); CurrentArea = area; } _currentConnector = connector; } } }