Client LuaCsForBarotrauma
BarotraumaClient/ClientSource/Items/Components/Scanner.cs
1
using
Barotrauma
.
Networking
;
2
3
namespace
Barotrauma.Items.Components
4
{
5
partial class
Scanner : ItemComponent,
IServerSerializable
6
{
7
partial
void
UpdateProjSpecific()
8
{
9
if
(Holdable !=
null
&& Holdable.
Attached
&& (
AlwaysDisplayProgressBar
||
DisplayProgressBar
) && !IsScanCompleted)
10
{
11
Character
.Controlled?.UpdateHUDProgressBar(
this
,
12
item
.
WorldPosition
,
13
ScanTimer
/
ScanDuration
,
14
GUIStyle.Red, GUIStyle.Green,
15
textTag:
"progressbar.scanning"
);
16
}
17
}
18
19
public
void
ClientEventRead
(
IReadMessage
msg,
float
sendingTime)
20
{
21
bool
wasScanCompletedPreviously = IsScanCompleted;
22
scanTimer = msg.
ReadSingle
();
23
if
(!wasScanCompletedPreviously && IsScanCompleted)
24
{
25
OnScanCompleted?.Invoke(
this
);
26
}
27
}
28
}
29
}
Barotrauma.Items.Components.Holdable.Attached
bool Attached
Definition:
BarotraumaShared/SharedSource/Items/Components/Holdable/Holdable.cs:68
Barotrauma.Items.Components.ItemComponent.item
Item item
Definition:
BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs:36
Barotrauma.Items.Components.Scanner.ScanDuration
float ScanDuration
Definition:
BarotraumaShared/SharedSource/Items/Components/Scanner.cs:9
Barotrauma.Items.Components.Scanner.DisplayProgressBar
bool DisplayProgressBar
Should the progress bar be displayed. Use when AlwaysDisplayProgressBar is set to false.
Definition:
BarotraumaShared/SharedSource/Items/Components/Scanner.cs:45
Barotrauma.Items.Components.Scanner.ClientEventRead
void ClientEventRead(IReadMessage msg, float sendingTime)
Definition:
BarotraumaClient/ClientSource/Items/Components/Scanner.cs:19
Barotrauma.Items.Components.Scanner.ScanTimer
float? ScanTimer
Definition:
BarotraumaShared/SharedSource/Items/Components/Scanner.cs:12
Barotrauma.Items.Components.Scanner.AlwaysDisplayProgressBar
bool AlwaysDisplayProgressBar
Definition:
BarotraumaShared/SharedSource/Items/Components/Scanner.cs:39
Barotrauma.IDamageable.WorldPosition
Vector2 WorldPosition
Definition:
IDamageable.cs:9
Barotrauma.Networking.IReadMessage
Definition:
IReadMessage.cs:8
Barotrauma.Networking.IReadMessage.ReadSingle
Single ReadSingle()
Barotrauma.Networking.IServerSerializable
Interface for entities that the server can send events to the clients
Definition:
INetSerializable.cs:22
Barotrauma.Items.Components
Definition:
BarotraumaShared/SharedSource/Items/Components/DockingPort.cs:15
Barotrauma.Networking
Definition:
LuaBarotraumaAdditions.cs:9
Barotrauma
Definition:
AchievementManager.cs:12
Barotrauma.AttackTarget.Character
@ Character
Barotrauma
BarotraumaClient
ClientSource
Items
Components
Scanner.cs
Generated by
1.9.1