//
// IMapInfo.cs
//
// Copyright (c) František Boháček. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using NosSmooth.Data.Abstractions.Language;
namespace NosSmooth.Data.Abstractions.Infos;
///
/// The NosTale map information.
///
public interface IMapInfo
{
///
/// Gets the Id of the map.
///
public int Id { get; }
///
/// Gets the translatable name of the map.
///
public TranslatableString Name { get; }
///
/// Gets the width of the grid.
///
public short Width { get; }
///
/// Gets the height of the grid.
///
public short Height { get; }
///
/// Gets grid data for the given position.
///
/// The x coordinate.
/// The y coordinate.
/// The grid value.
public byte GetData(short x, short y);
///
/// Gets whether the given position is walkable.
///
/// The x coordinate.
/// The y coordinate.
/// Whether the position is walkable.
public bool IsWalkable(short x, short y);
}