terraria-cpp2il-methodrecon
v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
TutorialStep_03_CraftWorkbench.cs
Go to the documentation of this file.
1
using
System
;
2
using
Controller
;
3
using
Terraria
;
4
using
Terraria.Localization
;
5
using
UnityEngine
;
6
7
// Token: 0x020002F2 RID: 754
8
public
class
TutorialStep_03_CraftWorkbench
:
TutorialStep
9
{
10
// Token: 0x06001176 RID: 4470 RVA: 0x000561A8 File Offset: 0x000543A8
11
public
override
TutorialStep.GuideOverLoadState
GetGuideState
()
12
{
13
return
TutorialStep
.
GuideOverLoadState
.StepInProgessDialogue;
14
}
15
16
// Token: 0x06001177 RID: 4471 RVA: 0x000561B8 File Offset: 0x000543B8
17
public
override
string
GetGuideString
()
18
{
19
do
20
{
21
LocalizedText
text
=
Language
.
GetText
(
"Tutorial.NeedMoreWood"
);
22
if
(this.
craftedWorkbench
)
23
{
24
}
25
}
26
while
(!this.
got10Wood
);
27
string <Value>k__BackingField =
Language
.
GetText
(
"Tutorial.HaveWood"
).<Value>k__BackingField;
28
XNAUnityRunner.ForcedInputMode
primaryInputMode
=
XNAUnityRunner
.
PrimaryInputMode
;
29
if
(this.
craftedWorkbench
)
30
{
31
string
controlTag
=
GUIKeyboardMappings
.
GetControlTag
(
ControlsKeyboardTagHandler
.
MappingType
.Aim);
32
string
text2 = <Value>k__BackingField.Replace(
"[cm:1]"
,
controlTag
);
33
string
controlTag2
=
GUIKeyboardMappings
.
GetControlTag
(
ControlsKeyboardTagHandler
.
MappingType
.Fire);
34
string
text3
= text2.Replace(
"[cm:2]"
,
controlTag2
);
35
string
controlTag3
=
GUIKeyboardMappings
.
GetControlTag
(
ControlsKeyboardTagHandler
.
MappingType
.InventoryToggle);
36
string
text4
=
text3
.Replace(
"[cm:5]"
,
controlTag3
);
37
ControllerActionButton.Entry
entry;
38
ControllerActionButton.Entry
entry2
;
39
if
(entry.
InputKey
==
KeyCode
.None &&
entry2
.InputKey ==
KeyCode
.None)
40
{
41
return
9;
42
}
43
string
controlTag4
=
GUIKeyboardMappings
.
GetControlTag
(
ControlsKeyboardTagHandler
.
MappingType
.CycleLeftPage);
44
string
text5
=
text4
.Replace(
"[cm:7]"
,
controlTag4
);
45
string
controlTag5
=
GUIKeyboardMappings
.
GetControlTag
(
ControlsKeyboardTagHandler
.
MappingType
.CycleRightPage);
46
string
text6
=
text5
.Replace(
"[cm:8]"
,
controlTag5
);
47
ControllerActionButton.Entry
entry3
;
48
ControllerActionButton.Entry
entry4
;
49
if
(
entry3
.InputKey !=
KeyCode
.None ||
entry4
.InputKey !=
KeyCode
.None)
50
{
51
string
controlTag6
=
GUIKeyboardMappings
.
GetControlTag
(
ControlsKeyboardTagHandler
.
MappingType
.CyclePreviousHotbarItem);
52
string
text7
=
text6
.Replace(
"[cm:9]"
,
controlTag6
);
53
string
controlTag7
=
GUIKeyboardMappings
.
GetControlTag
(
ControlsKeyboardTagHandler
.
MappingType
.CycleNextHotbarItem);
54
string
text8
=
text7
.Replace(
"[cm:10]"
,
controlTag7
);
55
string
controlTag8
=
GUIKeyboardMappings
.
GetControlTag
(
ControlsKeyboardTagHandler
.
MappingType
.CraftItem);
56
return
text8
.Replace(
"[cm:12]"
,
controlTag8
);
57
}
58
return
22;
59
}
60
else
61
{
62
string
text8
;
63
if
(
text8
._stringLength != 0)
64
{
65
return
"[cm:12]"
;
66
}
67
return
Language
.
GetTextValue
(
"TutorialTouch.NeedMoreWood"
);
68
}
69
}
70
71
// Token: 0x06001178 RID: 4472 RVA: 0x00056314 File Offset: 0x00054514
72
public
override
void
Reset
()
73
{
74
}
75
76
// Token: 0x06001179 RID: 4473 RVA: 0x00056324 File Offset: 0x00054524
77
public
override
void
OnGuideDialogueOpen
()
78
{
79
if
(this.
craftedWorkbench
)
80
{
81
return
;
82
}
83
if
(this.
got10Wood
)
84
{
85
long
num = 0
L
;
86
base
.SetTime(10, (
int
)num,
true
);
87
return
;
88
}
89
}
90
91
// Token: 0x0600117A RID: 4474 RVA: 0x00056350 File Offset: 0x00054550
92
public
override
void
OnItemPlaced
(
int
itemId,
int
tileType)
93
{
94
if
(!
true
)
95
{
96
}
97
this.placedWorkbench
=
true
;
98
}
99
100
// Token: 0x0600117B RID: 4475 RVA: 0x00056368 File Offset: 0x00054568
101
public
override
bool
Update
()
102
{
103
int
num = 1;
104
if
(num == 0)
105
{
106
}
107
int
myPlayer =
Main
.
myPlayer
;
108
int
num2
= 1;
109
this.got10Wood
=
num2
!= 0;
110
if
(num == 0)
111
{
112
}
113
this.craftedWorkbench
=
num2
!= 0;
114
return
this.
placedWorkbench
;
115
}
116
117
// Token: 0x0600117C RID: 4476 RVA: 0x000563A4 File Offset: 0x000545A4
118
public
TutorialStep_03_CraftWorkbench
()
119
{
120
}
121
122
// Token: 0x04002134 RID: 8500
123
private
bool
got10Wood
;
124
125
// Token: 0x04002135 RID: 8501
126
private
bool
craftedWorkbench
;
127
128
// Token: 0x04002136 RID: 8502
129
private
bool
placedWorkbench
;
130
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Controller.ControllerActionButton.Entry.InputKey
KeyCode InputKey
Definition
ControllerActionButton.cs:371
Controller.ControllerActionButton.Entry
Definition
ControllerActionButton.cs:352
ControlsKeyboardTagHandler.MappingType
MappingType
Definition
ControlsKeyboardTagHandler.cs:146
ControlsKeyboardTagHandler
Definition
ControlsKeyboardTagHandler.cs:12
GUIKeyboardMappings.GetControlTag
static string GetControlTag(ControlsKeyboardTagHandler.MappingType mappingType)
Definition
GUIKeyboardMappings.cs:556
GUIKeyboardMappings
Definition
GUIKeyboardMappings.cs:14
Terraria.Localization.Language.GetText
static LocalizedText GetText(string key)
Definition
Language.cs:44
Terraria.Localization.Language.GetTextValue
static string GetTextValue(string key)
Definition
Language.cs:54
Terraria.Localization.Language
Definition
Language.cs:11
Terraria.Localization.LocalizedText
Definition
LocalizedText.cs:13
Terraria.Main.myPlayer
static int myPlayer
Definition
Main.cs:2337
Terraria.Main
Definition
Main.cs:67
TutorialStep_03_CraftWorkbench.craftedWorkbench
bool craftedWorkbench
Definition
TutorialStep_03_CraftWorkbench.cs:126
TutorialStep_03_CraftWorkbench.got10Wood
bool got10Wood
Definition
TutorialStep_03_CraftWorkbench.cs:123
TutorialStep_03_CraftWorkbench.OnGuideDialogueOpen
override void OnGuideDialogueOpen()
Definition
TutorialStep_03_CraftWorkbench.cs:77
TutorialStep_03_CraftWorkbench.GetGuideString
override string GetGuideString()
Definition
TutorialStep_03_CraftWorkbench.cs:17
TutorialStep_03_CraftWorkbench.placedWorkbench
bool placedWorkbench
Definition
TutorialStep_03_CraftWorkbench.cs:129
TutorialStep_03_CraftWorkbench.GetGuideState
override TutorialStep.GuideOverLoadState GetGuideState()
Definition
TutorialStep_03_CraftWorkbench.cs:11
TutorialStep_03_CraftWorkbench.Update
override bool Update()
Definition
TutorialStep_03_CraftWorkbench.cs:101
TutorialStep_03_CraftWorkbench.TutorialStep_03_CraftWorkbench
TutorialStep_03_CraftWorkbench()
Definition
TutorialStep_03_CraftWorkbench.cs:118
TutorialStep_03_CraftWorkbench.OnItemPlaced
override void OnItemPlaced(int itemId, int tileType)
Definition
TutorialStep_03_CraftWorkbench.cs:92
TutorialStep_03_CraftWorkbench.Reset
override void Reset()
Definition
TutorialStep_03_CraftWorkbench.cs:72
TutorialStep_03_CraftWorkbench
Definition
TutorialStep_03_CraftWorkbench.cs:9
TutorialStep.GuideOverLoadState
GuideOverLoadState
Definition
TutorialStep.cs:80
TutorialStep
Definition
TutorialStep.cs:8
XNAUnityRunner.PrimaryInputMode
static XNAUnityRunner.ForcedInputMode PrimaryInputMode
Definition
XNAUnityRunner.cs:26
XNAUnityRunner.ForcedInputMode
ForcedInputMode
Definition
XNAUnityRunner.cs:912
XNAUnityRunner
Definition
XNAUnityRunner.cs:12
Controller
Definition
Axis.cs:4
System.ExceptionArgument.text
@ text
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
Terraria.Localization
Definition
GameCulture.cs:7
Terraria
Definition
Achievement.cs:10
UnityEngine.KeyCode
KeyCode
Definition
KeyCode.cs:7
UnityEngine
Definition
_AndroidJNIHelper.cs:6
source
TutorialStep_03_CraftWorkbench.cs
Generated by
1.10.0