Client LuaCsForBarotrauma
TutorialCompleteAction.cs
1
namespace
Barotrauma
2
{
6
class
TutorialCompleteAction
:
EventAction
7
{
8
private
bool
isFinished;
9
10
public
TutorialCompleteAction
(
ScriptedEvent
parentEvent,
ContentXElement
element) : base(parentEvent, element) { }
11
12
public
override
void
Update
(
float
deltaTime)
13
{
14
if
(isFinished) {
return
; }
15
16
#if CLIENT
17
if
(
GameMain
.
GameSession
?.
GameMode
is
TutorialMode
tutorialMode)
18
{
19
tutorialMode.Tutorial?.Complete();
20
}
21
#endif
22
isFinished =
true
;
23
}
24
25
public
override
bool
IsFinished
(ref
string
goToLabel)
26
{
27
return
isFinished;
28
}
29
30
public
override
void
Reset
()
31
{
32
isFinished =
false
;
33
}
34
}
35
}
Barotrauma.ContentXElement
Definition:
ContentXElement.cs:13
Barotrauma.EventAction
Definition:
EventAction.cs:9
Barotrauma.GameMain
Definition:
GameMain.cs:25
Barotrauma.GameMain.GameSession
static GameSession?? GameSession
Definition:
GameMain.cs:88
Barotrauma.GameSession.GameMode
GameMode? GameMode
Definition:
BarotraumaShared/SharedSource/GameSession/GameSession.cs:71
Barotrauma.ScriptedEvent
Definition:
ScriptedEvent.cs:9
Barotrauma.TutorialCompleteAction
Completes the tutorial. Only valid in tutorial events.
Definition:
TutorialCompleteAction.cs:7
Barotrauma.TutorialCompleteAction.TutorialCompleteAction
TutorialCompleteAction(ScriptedEvent parentEvent, ContentXElement element)
Definition:
TutorialCompleteAction.cs:10
Barotrauma.TutorialCompleteAction.IsFinished
override bool IsFinished(ref string goToLabel)
Has the action finished.
Definition:
TutorialCompleteAction.cs:25
Barotrauma.TutorialCompleteAction.Reset
override void Reset()
Definition:
TutorialCompleteAction.cs:30
Barotrauma.TutorialCompleteAction.Update
override void Update(float deltaTime)
Definition:
TutorialCompleteAction.cs:12
Barotrauma.TutorialMode
Definition:
TutorialMode.cs:6
Barotrauma
Definition:
AchievementManager.cs:12
Barotrauma
BarotraumaShared
SharedSource
Events
EventActions
TutorialCompleteAction.cs
Generated by
1.9.1