Elin Decompiled Documentation
EA 23.180 Nightly
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
Functions
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
w
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Events
Files
File List
File Members
All
$
a
b
c
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
z
Functions
Variables
Enumerations
a
b
c
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
z
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Properties
Events
Pages
Loading...
Searching...
No Matches
TraitSet.cs
Go to the documentation of this file.
1
using
System;
2
using
System.Collections.Generic;
3
using
System.Linq;
4
5
public
class
TraitSet
: HashSet<Card>
6
{
7
public
Trait
GetRandom
()
8
{
9
return
this.RandomItem()?.trait;
10
}
11
12
public
Trait
GetRandom
(
Chara
accessChara)
13
{
14
return
GetRandom
((
Card
t) => accessChara ==
null
|| accessChara.
HasAccess
(t));
15
}
16
17
public
Trait
GetRandom
(Func<Card, bool> func)
18
{
19
if
(func ==
null
)
20
{
21
return
GetRandom
();
22
}
23
return
this.Where(func).RandomItem()?.trait;
24
}
25
}
Card
Definition:
Card.cs:11
Chara
Definition:
Chara.cs:10
Chara.HasAccess
bool HasAccess(Card c)
Definition:
Chara.cs:1262
TraitSet
Definition:
TraitSet.cs:6
TraitSet.GetRandom
Trait GetRandom(Chara accessChara)
Definition:
TraitSet.cs:12
TraitSet.GetRandom
Trait GetRandom()
Definition:
TraitSet.cs:7
TraitSet.GetRandom
Trait GetRandom(Func< Card, bool > func)
Definition:
TraitSet.cs:17
Trait
Definition:
Trait.cs:7
Elin
TraitSet.cs
Generated by
1.9.6