Elin Modding Docs Doc
Loading...
Searching...
No Matches
ThirstPersonInfo.cs
1using System;
2
3// Token: 0x020005CC RID: 1484
4public class ThirstPersonInfo : EClass
5{
6 // Token: 0x060028A7 RID: 10407 RVA: 0x000E6178 File Offset: 0x000E4378
7 public void Set(string n)
8 {
9 int num;
10 this.active = int.TryParse(n, out num);
11 if (!this.active)
12 {
13 return;
14 }
15 this.he = "it".lang();
16 this.his = "its".lang();
17 this.him = "it".lang();
18 this.himself = "itself".lang();
19 this.your = "somethings".lang();
20 this.thirdperson = true;
21 }
22
23 // Token: 0x060028A8 RID: 10408 RVA: 0x000E61F4 File Offset: 0x000E43F4
24 public void Set(Card c = null, bool forceThirdPerson = false)
25 {
26 if (c == null)
27 {
28 this.active = false;
29 return;
30 }
31 this.active = true;
32 if (c.IsPC && !forceThirdPerson)
33 {
34 this.he = "you".lang();
35 this.his = "your".lang();
36 this.him = "you".lang();
37 this.himself = "yourself".lang();
38 this.your = this.his;
39 this.thirdperson = false;
40 return;
41 }
42 if (forceThirdPerson || Msg.alwaysVisible || (!EClass.pc.isBlind && EClass.pc.CanSee(c)))
43 {
44 this.he = (c.isChara ? (c.IsMale ? "he".lang() : "she".lang()) : "it".lang());
45 this.his = (c.isChara ? (c.IsMale ? "his".lang() : "hers".lang()) : "its".lang());
46 this.him = (c.isChara ? (c.IsMale ? "him".lang() : "her".lang()) : "it".lang());
47 this.himself = (c.isChara ? (c.IsMale ? "himself".lang() : "herself".lang()) : "itself".lang());
48 this.your = "ones".lang(c.Name, null, null, null, null);
49 this.thirdperson = true;
50 return;
51 }
52 this.he = "it".lang();
53 this.his = "its".lang();
54 this.him = "it".lang();
55 this.himself = "itself".lang();
56 this.your = (c.isChara ? "someones" : "somethings").lang();
57 this.thirdperson = true;
58 }
59
60 // Token: 0x040016E1 RID: 5857
61 public string he;
62
63 // Token: 0x040016E2 RID: 5858
64 public string his;
65
66 // Token: 0x040016E3 RID: 5859
67 public string him;
68
69 // Token: 0x040016E4 RID: 5860
70 public string himself;
71
72 // Token: 0x040016E5 RID: 5861
73 public string your;
74
75 // Token: 0x040016E6 RID: 5862
76 public bool active;
77
78 // Token: 0x040016E7 RID: 5863
79 public bool thirdperson;
80}
Definition Card.cs:13
Definition Msg.cs:7