-
Notifications
You must be signed in to change notification settings - Fork 1
Home
WARNING, THIS API IS STILL A WIP MEANING ANYTHING HERE CAN CHANGE
To use FateGrandOrderAPI you need to get the NuGet package (Azy.FateGrandOrderAPI) and add using FateGrandOrderApi;
at the top of your cs file
Once you done that you can get:
- Skills
var skill = FateGrandOrderParsing.GetSkill("SkillName"); //Returns a Skill class
- Active Skills
var activeSkill = FateGrandOrderParsing.GetActiveSkill("SkillName"); //Returns a ActiveSkill class
- Items
var item = FateGrandOrderParsing.GetItem("ItemName"); //Returns a Item class
- Enemies
var enemy = FateGrandOrderParsing.GetEnemy("EnemyName"); //Returns a Enemy class
- Servant
var servant = FateGrandOrderParsing.GetServant("ServantName"); //Returns a Servant class
So because Servants have got so much data this API will allow you to choose what it grabs. There are 3 presets for this: AllInformation
(Grabs everything the API can get), BasicInformation
(Only the basic information about the servant) and NotSet
(returns nothing). GetServant is set with AllInformation by default
To use this you would change the servant line to this
var servant = FateGrandOrderParsing.GetServant("ServantName", presetsForInformation: PresetsForInformation.<Preset you want to use>); //Returns a Servant class
There is also a ToGrab class with three settings, Grab
(Grab the content), DontGrab
(Don't Grab the content) and NotSet
(Isn't set if to grab or not grab (For Servants this will result in the content being grabbed))
The ToGrab's that tell the API what it's going to get are:
- GetBasicInformation (Get's basic information)
- GetActiveSkills (Get's Active Skills)
- GetPassiveSkills (Get's Passive Skills)
- GetNoblePhantasm (Get's Noble Phantasm)
- GetAscension (Get's Ascension)
- GetSkillReinforcement (Get's Skill Reinforcement)
- GetStats (Get's Stats)
- GetBondLevel (Get's Bond Level)
- GetBiography (Get's Biography)
- GetAvailability (Get's Availability)
- GetTrivia (Get's Trivia)
- GetImages (Get's Images of/with the servant)
To use them you would do
var servant = FateGrandOrderParsing.GetServant("ServantName", GetImages: ToGrab.Grab); //Returns a Servant class
So let's say that you only wanted to get images then you would do
var servant = FateGrandOrderParsing.GetServant("ServantName", presetsForInformation: PresetsForInformation.NotSet, GetImages: ToGrab.Grab); //Returns a Servant class
Or everything but the images then you would do
var servant = FateGrandOrderParsing.GetServant("ServantName", presetsForInformation: PresetsForInformation.AllInformation, GetImages: ToGrab.DontGrab); //Returns a Servant class