Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
ThirstPersonInfo.cs
Go to the documentation of this file.
1
public
class
ThirstPersonInfo
:
EClass
2
{
3
public
string
he
;
4
5
public
string
his
;
6
7
public
string
him
;
8
9
public
string
himself
;
10
11
public
string
your
;
12
13
public
bool
active
;
14
15
public
bool
thirdperson
;
16
17
public
void
Set
(
string
n)
18
{
19
active
=
int
.TryParse(n, out var _);
20
if
(
active
)
21
{
22
he
=
"it"
.lang();
23
his
=
"its"
.lang();
24
him
=
"it"
.lang();
25
himself
=
"itself"
.lang();
26
your
=
"somethings"
.lang();
27
thirdperson
=
true
;
28
}
29
}
30
31
public
void
Set
(
Card
c =
null
,
bool
forceThirdPerson =
false
)
32
{
33
if
(c ==
null
)
34
{
35
active
=
false
;
36
return
;
37
}
38
active
=
true
;
39
if
(c.IsPC && !forceThirdPerson)
40
{
41
he
=
"you"
.lang();
42
his
=
"your"
.lang();
43
him
=
"you"
.lang();
44
himself
=
"yourself"
.lang();
45
your
=
his
;
46
thirdperson
=
false
;
47
}
48
else
if
(forceThirdPerson ||
Msg
.
alwaysVisible
|| (!
EClass
.
pc
.
isBlind
&&
EClass
.
pc
.
CanSee
(c)))
49
{
50
he
= ((!c.isChara) ?
"it"
.lang() : (c.IsMale ?
"he"
.lang() :
"she"
.lang()));
51
his
= ((!c.isChara) ?
"its"
.lang() : (c.IsMale ?
"his"
.lang() :
"hers"
.lang()));
52
him
= ((!c.isChara) ?
"it"
.lang() : (c.IsMale ?
"him"
.lang() :
"her"
.lang()));
53
himself
= ((!c.isChara) ?
"itself"
.lang() : (c.IsMale ?
"himself"
.lang() :
"herself"
.lang()));
54
your
=
"ones"
.lang(c.Name);
55
thirdperson
=
true
;
56
}
57
else
58
{
59
he
=
"it"
.lang();
60
his
=
"its"
.lang();
61
him
=
"it"
.lang();
62
himself
=
"itself"
.lang();
63
your
= (c.isChara ?
"someones"
:
"somethings"
).lang();
64
thirdperson
=
true
;
65
}
66
}
67
}
Card
Definition:
Card.cs:11
Chara.CanSee
bool CanSee(Card c)
Definition:
Chara.cs:1027
Chara.isBlind
bool isBlind
Definition:
Chara.cs:125
EClass
Definition:
EClass.cs:5
EClass.pc
static Chara pc
Definition:
EClass.cs:14
Msg
Definition:
Msg.cs:5
Msg.alwaysVisible
static bool alwaysVisible
Definition:
Msg.cs:12
ThirstPersonInfo
Definition:
ThirstPersonInfo.cs:2
ThirstPersonInfo.your
string your
Definition:
ThirstPersonInfo.cs:11
ThirstPersonInfo.active
bool active
Definition:
ThirstPersonInfo.cs:13
ThirstPersonInfo.Set
void Set(Card c=null, bool forceThirdPerson=false)
Definition:
ThirstPersonInfo.cs:31
ThirstPersonInfo.thirdperson
bool thirdperson
Definition:
ThirstPersonInfo.cs:15
ThirstPersonInfo.him
string him
Definition:
ThirstPersonInfo.cs:7
ThirstPersonInfo.himself
string himself
Definition:
ThirstPersonInfo.cs:9
ThirstPersonInfo.Set
void Set(string n)
Definition:
ThirstPersonInfo.cs:17
ThirstPersonInfo.he
string he
Definition:
ThirstPersonInfo.cs:3
ThirstPersonInfo.his
string his
Definition:
ThirstPersonInfo.cs:5
Elin
ThirstPersonInfo.cs
Generated by
1.9.6