Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
CharaFilter.cs
Go to the documentation of this file.
1using System;
2
3public class CharaFilter : CardFilter
4{
5 public Func<SourceChara.Row, bool> ShouldPass;
6
7 public CharaFilter()
8 {
9 isChara = true;
10 }
11
12 protected override bool _ShouldPass(CardRow source)
13 {
14 if (ShouldPass != null)
15 {
16 return ShouldPass(source as SourceChara.Row);
17 }
18 return true;
19 }
20
21 public override bool ContainsTag(CardRow source, string str)
22 {
23 SourceChara.Row row = source as SourceChara.Row;
24 if (!source.tag.Contains(str))
25 {
26 return row.race_row.tag.Contains(str);
27 }
28 return true;
29 }
30}
bool isChara
Definition: CardFilter.cs:49
override bool ContainsTag(CardRow source, string str)
Definition: CharaFilter.cs:21
override bool _ShouldPass(CardRow source)
Definition: CharaFilter.cs:12
Func< SourceChara.Row, bool > ShouldPass
Definition: CharaFilter.cs:5
string[] tag
Definition: RenderRow.cs:58
SourceRace.Row race_row
Definition: SourceChara.cs:75