/
Spellcasting.cs
33 lines (31 loc) · 1.03 KB
/
Spellcasting.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 Spellcasting class, rolled up by Burrito.
///</summary>
public class Spellcasting
{
///<summary>
///Gets spellcasting information, given an index.
///</summary>
public static IndependentSpellcastingInfo GetSpellcastingInfoAsync(string index = "")
{
return BurritoCore.API.Get<IndependentSpellcastingInfo>(_globals.RootURL + $"spellcasting/{index}");
}
///<summary>
///Gets spellcasting information, given an index.
///</summary>
public static Task GetSpellcastingInfoAsync(BurritoCore.APICallReturnDelegate<IndependentSpellcastingInfo> callback, string index = "")
{
return BurritoCore.API.GetAsync<IndependentSpellcastingInfo>(_globals.RootURL + $"spellcasting/{index}", callback);
}
}
}