Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
CharaFilter Class Reference
Inheritance diagram for CharaFilter:
CardFilter EClass

Public Member Functions

 CharaFilter ()
 
override bool ContainsTag (CardRow source, string str)
 
- Public Member Functions inherited from CardFilter
override string ToString ()
 
virtual bool ContainsTag (CardRow source, string str)
 
void Init ()
 
bool Pass (CardRow source)
 
void BuildList (List< FilterItem > list, string[] strs)
 

Public Attributes

Func< SourceChara.Row, bool > ShouldPass
 
- Public Attributes inherited from CardFilter
string id
 
string[] strTag
 
string[] strFilter
 
string[] filterCategory
 
string[] idCard
 
List< FilterItemtags = new List<FilterItem>()
 
List< FilterItemfilters = new List<FilterItem>()
 
List< FilterCategorycategories = new List<FilterCategory>()
 
List< SourceCategory.RowcategoriesInclude = new List<SourceCategory.Row>()
 
bool isChara
 

Protected Member Functions

override bool _ShouldPass (CardRow source)
 
virtual bool _ShouldPass (CardRow source)
 

Additional Inherited Members

- Public Types inherited from CardFilter
enum  FilterMode { None , Exclude , Match , Equipped }
 
- Static Public Member Functions inherited from CardFilter
static FilterItem GetFilterItem (string text)
 
- Static Public Member Functions inherited from EClass
static int rnd (int a)
 
static int curve (int a, int start, int step, int rate=75)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 
- Static Public Attributes inherited from EClass
static Core core
 
- Properties inherited from EClass
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Faction Wilds [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 

Detailed Description

Definition at line 3 of file CharaFilter.cs.

Constructor & Destructor Documentation

◆ CharaFilter()

CharaFilter.CharaFilter ( )
inline

Definition at line 7 of file CharaFilter.cs.

8 {
9 isChara = true;
10 }
bool isChara
Definition: CardFilter.cs:49

References CardFilter.isChara.

Member Function Documentation

◆ _ShouldPass()

override bool CharaFilter._ShouldPass ( CardRow  source)
inlineprotectedvirtual

Reimplemented from CardFilter.

Definition at line 12 of file CharaFilter.cs.

13 {
14 if (ShouldPass != null)
15 {
16 return ShouldPass(source as SourceChara.Row);
17 }
18 return true;
19 }
Func< SourceChara.Row, bool > ShouldPass
Definition: CharaFilter.cs:5

References ShouldPass.

◆ ContainsTag()

override bool CharaFilter.ContainsTag ( CardRow  source,
string  str 
)
inlinevirtual

Reimplemented from CardFilter.

Definition at line 21 of file CharaFilter.cs.

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 }
string[] tag
Definition: RenderRow.cs:58
SourceRace.Row race_row
Definition: SourceChara.cs:75

References SourceChara.Row.race_row, and RenderRow.tag.

Member Data Documentation

◆ ShouldPass

Func<SourceChara.Row, bool> CharaFilter.ShouldPass

Definition at line 5 of file CharaFilter.cs.

Referenced by _ShouldPass().


The documentation for this class was generated from the following file: