Client LuaCsForBarotrauma
BarotraumaShared/SharedSource/Items/Components/Ladder.cs
1
using
System.Collections.Generic;
2
using
System.Xml.Linq;
3
4
namespace
Barotrauma.Items.Components
5
{
6
partial class
Ladder
:
ItemComponent
7
{
8
public
static
List<Ladder>
List
{
get
; } =
new
List<Ladder>();
9
10
public
Ladder
(
Item
item
,
ContentXElement
element)
11
: base(
item
, element)
12
{
13
InitProjSpecific(element);
14
List
.Add(
this
);
15
}
16
17
partial
void
InitProjSpecific(
ContentXElement
element);
18
19
public
override
bool
Select
(
Character
character)
20
{
21
if
(character ==
null
|| character.
LockHands
|| character.
Removed
|| !(character.
AnimController
is
HumanoidAnimController
))
return
false
;
22
character.
AnimController
.
StartClimbing
();
23
return
true
;
24
}
25
26
protected
override
void
RemoveComponentSpecific
()
27
{
28
base.RemoveComponentSpecific();
29
RemoveProjSpecific();
30
List
.Remove(
this
);
31
}
32
33
partial
void
RemoveProjSpecific();
34
}
35
}
Barotrauma.AnimController.StartClimbing
void StartClimbing()
Barotrauma.Character
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:32
Barotrauma.Character.LockHands
bool? LockHands
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:641
Barotrauma.Character.AnimController
readonly AnimController AnimController
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:373
Barotrauma.ContentXElement
Definition:
ContentXElement.cs:13
Barotrauma.Entity.Removed
bool Removed
Definition:
Entity.cs:35
Barotrauma.HumanoidAnimController
Definition:
HumanoidAnimController.cs:12
Barotrauma.Item
Definition:
BarotraumaShared/SharedSource/Items/Item.cs:26
Barotrauma.Items.Components.ItemComponent
The base class for components holding the different functionalities of the item
Definition:
BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs:35
Barotrauma.Items.Components.ItemComponent.item
Item item
Definition:
BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs:36
Barotrauma.Items.Components.Ladder
Definition:
BarotraumaShared/SharedSource/Items/Components/Ladder.cs:7
Barotrauma.Items.Components.Ladder.List
static List< Ladder > List
Definition:
BarotraumaShared/SharedSource/Items/Components/Ladder.cs:8
Barotrauma.Items.Components.Ladder.Select
override bool Select(Character character)
Definition:
BarotraumaShared/SharedSource/Items/Components/Ladder.cs:19
Barotrauma.Items.Components.Ladder.Ladder
Ladder(Item item, ContentXElement element)
Definition:
BarotraumaShared/SharedSource/Items/Components/Ladder.cs:10
Barotrauma.Items.Components.Ladder.RemoveComponentSpecific
override void RemoveComponentSpecific()
Definition:
BarotraumaShared/SharedSource/Items/Components/Ladder.cs:26
Barotrauma.Items.Components
Definition:
BarotraumaShared/SharedSource/Items/Components/DockingPort.cs:15
Barotrauma
BarotraumaShared
SharedSource
Items
Components
Ladder.cs
Generated by
1.9.1