﻿using System;

namespace JLGames.RocketDriver.Games.Tiledx
{
    [Serializable]
    public struct Chunksize
    {
        // The width of chunks used for infinite maps (default to 16).
        public int width;
        // The width of chunks used for infinite maps (default to 16).
        public int height;
    }

    [Serializable]
    public struct EditorExport
    {
        // The last file this map was exported to.
        public string target;
        // The short name of the last format this map was exported as.
        public string format;

        public override string ToString()
        {
            return $"Export[format={format},target={target}]";
        }
    }

    [Serializable]
    public struct EditorSettings
    {
        public EditorExport EditorExport;

        public override string ToString()
        {
            return $"EditorSettings[{EditorExport}]";
        }
    }

    public class MapEditor : Map
    {
        public EditorSettings editorsettings;
    }
}