-
Notifications
You must be signed in to change notification settings - Fork 0
/
StartingEquipment.cs
33 lines (31 loc) · 1.07 KB
/
StartingEquipment.cs
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using DnD5e.Data;
namespace DnD5e
{
//<summary>
///The StartingEquipment class, rolled up by Burrito.
///</summary>
public class StartingEquipment
{
///<summary>
///Gets starting equipment information, given an index.
///</summary>
public static IndependentStartingEquipment GetStartingEquipmentAsync(string index = "")
{
return BurritoCore.API.Get<IndependentStartingEquipment>(_globals.RootURL + $"starting-equipment/{index}");
}
///<summary>
///Gets starting equipment information, given an index.
///</summary>
public static Task GetStartingEquipmentAsync(BurritoCore.APICallReturnDelegate<IndependentStartingEquipment> callback, string index = "")
{
return BurritoCore.API.GetAsync<IndependentStartingEquipment>(_globals.RootURL + $"starting-equipment/{index}", callback);
}
}
}