~ruther/NosSmooth

ref: fcd0751c2f76ffee45134260ce9d7c0bddf837d2 NosSmooth/Data/NosSmooth.Data.Abstractions/Infos/IMapInfo.cs -rw-r--r-- 1.3 KiB
fcd0751c — František Boháček Merge pull request #22 from Rutherther/data 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
//  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;

/// <summary>
/// The NosTale map information.
/// </summary>
public interface IMapInfo
{
    /// <summary>
    /// Gets the Id of the map.
    /// </summary>
    public int Id { get; }

    /// <summary>
    /// Gets the translatable name of the map.
    /// </summary>
    public TranslatableString Name { get; }

    /// <summary>
    /// Gets the width of the grid.
    /// </summary>
    public short Width { get; }

    /// <summary>
    /// Gets the height of the grid.
    /// </summary>
    public short Height { get; }

    /// <summary>
    /// Gets grid data for the given position.
    /// </summary>
    /// <param name="x">The x coordinate.</param>
    /// <param name="y">The y coordinate.</param>
    /// <returns>The grid value.</returns>
    public byte GetData(short x, short y);

    /// <summary>
    /// Gets whether the given position is walkable.
    /// </summary>
    /// <param name="x">The x coordinate.</param>
    /// <param name="y">The y coordinate.</param>
    /// <returns>Whether the position is walkable.</returns>
    public bool IsWalkable(short x, short y);
}
Do not follow this link