コード例 #1
0
 /*********
 ** Public Methods
 *********/
 /// <summary>Constructs an instance.</summary>
 /// <param name="type">The type of the shadow.</param>
 /// <param name="name">The name of the shadow.</param>
 /// <param name="level">The level of the shadow.</param>
 /// <param name="hp">The number of health points the shadow has.</param>
 /// <param name="sp">The number of skill points the shadow has.</param>
 /// <param name="experience">The experience you get upon killing the shadow.</param>
 /// <param name="yen">The amount of money you get upon killing the shadow.</param>
 /// <param name="stats">The stats of the shadow.</param>
 /// <param name="elementAffinities">The element affinities of the shadow.</param>
 /// <param name="skills">The skills the shadow has.</param>
 public Shadow(ShadowType type, string name, int level, int hp, int sp, int experience, string yen, Stats stats, ElementAffinities elementAffinities, List <string> skills)
 {
     Type              = type;
     Name              = name;
     Level             = level;
     HP                = hp;
     SP                = sp;
     Experience        = experience;
     Yen               = yen;
     Stats             = stats;
     ElementAffinities = elementAffinities;
     Skills            = skills ?? new();
 }
コード例 #2
0
 /// <inheritdoc/>
 public override bool DoesModelPassFilter(string filter) =>
 Name.Contains(filter, StringComparison.OrdinalIgnoreCase) ||
 Type.GetDisplayName().Contains(filter, StringComparison.OrdinalIgnoreCase) ||
 Level.ToString().Contains(filter) ||
 Stats.DoesModelPassFilter(filter) ||
 ElementAffinities.DoesModelPassFilter(filter);