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
//
// IInfoService.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.Infos;
using Remora.Results;
namespace NosSmooth.Data.Abstractions;
/// <summary>
/// Service for retrieving information about NosTale objects.
/// </summary>
public interface IInfoService
{
/// <summary>
/// Gets the information about an item.
/// </summary>
/// <param name="vnum">The vnum identifier of the item.</param>
/// <returns>An item info or an error.</returns>
public Result<IItemInfo> GetItemInfo(int vnum);
/// <summary>
/// Gets the information about a map.
/// </summary>
/// <param name="id">The identifier of the map.</param>
/// <returns>A map info or an error.</returns>
public Result<IMapInfo> GetMapInfo(int id);
/// <summary>
/// Gets the information about a monster.
/// </summary>
/// <param name="vnum">The vnum identifier of the monster.</param>
/// <returns>A monster or an error.</returns>
public Result<IMonsterInfo> GetMonsterInfo(int vnum);
/// <summary>
/// Gets the information about a skill.
/// </summary>
/// <param name="vnum">The vnum identifier of the skill.</param>
/// <returns>A map or an error.</returns>
public Result<ISkillInfo> GetSkillInfo(int vnum);
}