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.
1using System;
2using Controller;
3using Terraria;
5using UnityEngine;
6
7// Token: 0x020002F2 RID: 754
9{
10 // Token: 0x06001176 RID: 4470 RVA: 0x000561A8 File Offset: 0x000543A8
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;
29 if (this.craftedWorkbench)
30 {
32 string text2 = <Value>k__BackingField.Replace("[cm:1]", controlTag);
34 string text3 = text2.Replace("[cm:2]", controlTag2);
36 string text4 = text3.Replace("[cm:5]", controlTag3);
39 if (entry.InputKey == KeyCode.None && entry2.InputKey == KeyCode.None)
40 {
41 return 9;
42 }
44 string text5 = text4.Replace("[cm:7]", controlTag4);
46 string text6 = text5.Replace("[cm:8]", controlTag5);
49 if (entry3.InputKey != KeyCode.None || entry4.InputKey != KeyCode.None)
50 {
52 string text7 = text6.Replace("[cm:9]", controlTag6);
54 string text8 = text7.Replace("[cm:10]", controlTag7);
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 = 0L;
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 }
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 }
114 return this.placedWorkbench;
115 }
116
117 // Token: 0x0600117C RID: 4476 RVA: 0x000563A4 File Offset: 0x000545A4
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}
class f__AnonymousType0<< Count > j__TPar
static string GetControlTag(ControlsKeyboardTagHandler.MappingType mappingType)
static LocalizedText GetText(string key)
Definition Language.cs:44
static string GetTextValue(string key)
Definition Language.cs:54
static int myPlayer
Definition Main.cs:2337
override TutorialStep.GuideOverLoadState GetGuideState()
override void OnItemPlaced(int itemId, int tileType)
static XNAUnityRunner.ForcedInputMode PrimaryInputMode