Skip to content

Releases: bmbowdish/Swiftfall

Setting Getters for other types

28 Feb 02:12
5a7c40f
Compare
Choose a tag to compare
Pre-release

Created getter functions for the type Set and SetList as well as CardList.

Fixing simplePrint()

27 Feb 03:24
4b1b34c
Compare
Choose a tag to compare
Fixing simplePrint() Pre-release
Pre-release

Set,
SetList
CardList

Did not work. Now they do!

Fixed getName()

27 Feb 03:06
4538901
Compare
Choose a tag to compare
Fixed getName() Pre-release
Pre-release

getName() was the only one that didn't seem to work.

Getters for Card type

27 Feb 02:57
164df10
Compare
Choose a tag to compare
Getters for Card type Pre-release
Pre-release

You can now use functions like .getName() to get a var.

Test Path Fixed

26 Feb 23:15
63cfb91
Compare
Choose a tag to compare
Test Path Fixed Pre-release
Pre-release

The test path was not working. Now it is.

First Release

26 Feb 22:33
7df4608
Compare
Choose a tag to compare
First Release Pre-release
Pre-release

What works?

Types

All types are Structs and can be reach through a Swiftfall.get*().

All Structs have a print function called simplePrint().

Card?

  • Struct containing data about a Magic Card

Set?

  • Struct containing data about a Set of Magic cards

CardList?

  • Struct containing a list of Cards

SetList?

  • Struct containing a list of Sets

Functions

These are some functions you can call which will handle information from Scryfall's API.

Get a Card

Swiftfall.getCard(fuzzy:String) -> Card? (Fuzzy search)
Swiftfall.getCard(exact:String) -> Card? (Exact search)
Swiftfall.getRandomCard() -> Card? (Random Card)

Get a list of Cards

Swiftfall.getCardList() -> CardList? (The first page)
Swiftfall.getCardList(page:Int) -> CardList? (Loads a specific page)

Get a Set

Swiftfall.getSet(code:String) -> Set? (String must be a three letter code)

Get a list of Set

Swiftfall.getSetList() -> SetList? (All Sets)