Client LuaCsForBarotrauma
NameTag.cs
1
using
System.Xml.Linq;
2
3
namespace
Barotrauma.Items.Components
4
{
5
class
NameTag
:
ItemComponent
6
{
7
[
InGameEditable
(MaxLength = 32),
Serialize
(
""
,
IsPropertySaveable
.No, description:
"Name written on the tag."
, alwaysUseInstanceValues:
true
)]
8
public
string
WrittenName
{
get
;
set
; }
9
10
public
NameTag
(
Item
item
,
ContentXElement
element) : base(
item
, element)
11
{
12
AllowInGameEditing
=
true
;
13
DrawHudWhenEquipped
=
true
;
14
item
.
EditableWhenEquipped
=
true
;
15
}
16
}
17
}
Barotrauma.ContentXElement
Definition:
ContentXElement.cs:13
Barotrauma.Item
Definition:
BarotraumaShared/SharedSource/Items/Item.cs:26
Barotrauma.Item.EditableWhenEquipped
bool EditableWhenEquipped
Definition:
BarotraumaShared/SharedSource/Items/Item.cs:233
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.AllowInGameEditing
bool AllowInGameEditing
Definition:
BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs:219
Barotrauma.Items.Components.ItemComponent.DrawHudWhenEquipped
bool DrawHudWhenEquipped
Definition:
BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs:177
Barotrauma.Items.Components.ItemComponent.item
Item item
Definition:
BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs:36
Barotrauma.Items.Components.NameTag
Definition:
NameTag.cs:6
Barotrauma.Items.Components.NameTag.NameTag
NameTag(Item item, ContentXElement element)
Definition:
NameTag.cs:10
Barotrauma.Items.Components.NameTag.WrittenName
string WrittenName
Definition:
NameTag.cs:8
Barotrauma.Serialize
Definition:
SerializableProperty.cs:23
InGameEditable
Definition:
Editable.cs:58
Barotrauma.Items.Components
Definition:
BarotraumaShared/SharedSource/Items/Components/DockingPort.cs:15
Barotrauma.IsPropertySaveable
IsPropertySaveable
Definition:
SerializableProperty.cs:16
Barotrauma
BarotraumaShared
SharedSource
Items
Components
NameTag.cs
Generated by
1.9.1