コード例 #1
0
 /// <summary>
 /// Create card.
 /// </summary>
 /// <param name="passCode">YuGiOh Card Passcode.</param>
 /// <param name="name">Card name.</param>
 /// <param name="description">Card description/effect/flavor text.</param>
 /// <param name="type">
 ///     For example: normal monster, trap card, magic card.
 ///     https://db.ygoprodeck.com/api-guide/
 /// </param>
 /// <param name="race">
 ///     For example:
 ///     <para>1) For monster: aqua, machine warrior</para>
 ///     <para>2) For spell: normal, field, quick-spell</para>
 ///     <para>3) For trap: normal, continuous, counter</para>
 ///     https://db.ygoprodeck.com/api-guide/
 /// </param>
 /// <param name="imageUrl">Link to the image of the card.</param>
 /// <param name="smallImageUrl">Link to the small image of the card.</param>
 /// <param name="archetype">Card archetype</param>
 /// <returns>New Card</returns>
 public static Card Create(
     int passCode,
     string name,
     string description,
     string type,
     string race,
     string imageUrl,
     string smallImageUrl,
     Archetype archetype)
 {
     return(new Card(
                passCode,
                name,
                description,
                type,
                race,
                imageUrl,
                smallImageUrl
                )
     {
         Archetype = archetype
     });
 }
コード例 #2
0
 /// <summary>
 /// Initialize archetype statistics. Remember to assign archetype.
 /// </summary>
 /// <param name="dateWhenArchetypeWasUsed">Date of the analysis.</param>
 public ArchetypeStatistics(Archetype archetype, DateTime dateWhenArchetypeWasUsed)
 {
     Archetype = archetype;
     DateWhenArchetypeWasUsed = dateWhenArchetypeWasUsed;
 }