Client LuaCsForBarotrauma
BallastFloraPrefab.cs
1
using
System;
2
using
System.Collections;
3
using
System.Xml.Linq;
4
5
namespace
Barotrauma
6
{
7
class
BallastFloraPrefab
:
Prefab
8
{
9
public
string
OriginalName
{
get
; }
10
public
LocalizedString
DisplayName
{
get
; }
11
public
ContentXElement
Element
{
get
; }
12
13
public
bool
Disposed
;
14
15
public
static
readonly
PrefabCollection<BallastFloraPrefab>
Prefabs
=
new
PrefabCollection<BallastFloraPrefab>
();
16
17
public
BallastFloraPrefab
(
ContentXElement
element,
BallastFloraFile
file) : base(file, element.GetAttributeIdentifier(
"identifier"
,
""
))
18
{
19
OriginalName
= element.
GetAttributeString
(
"name"
,
""
);
20
DisplayName
= TextManager.Get(
Identifier
).
Fallback
(
OriginalName
);
21
Element
= element;
22
}
23
24
public
static
BallastFloraPrefab
Find
(
Identifier
identifier)
25
{
26
return
Prefabs
.ContainsKey(identifier) ?
Prefabs
[identifier] :
null
;
27
}
28
29
public
override
void
Dispose
() { }
30
}
31
}
Barotrauma.BallastFloraFile
Definition:
BallastFloraFile.cs:7
Barotrauma.BallastFloraPrefab
Definition:
BallastFloraPrefab.cs:8
Barotrauma.BallastFloraPrefab.Prefabs
static readonly PrefabCollection< BallastFloraPrefab > Prefabs
Definition:
BallastFloraPrefab.cs:15
Barotrauma.BallastFloraPrefab.DisplayName
LocalizedString DisplayName
Definition:
BallastFloraPrefab.cs:10
Barotrauma.BallastFloraPrefab.BallastFloraPrefab
BallastFloraPrefab(ContentXElement element, BallastFloraFile file)
Definition:
BallastFloraPrefab.cs:17
Barotrauma.BallastFloraPrefab.Element
ContentXElement Element
Definition:
BallastFloraPrefab.cs:11
Barotrauma.BallastFloraPrefab.Disposed
bool Disposed
Definition:
BallastFloraPrefab.cs:13
Barotrauma.BallastFloraPrefab.OriginalName
string OriginalName
Definition:
BallastFloraPrefab.cs:9
Barotrauma.BallastFloraPrefab.Find
static BallastFloraPrefab Find(Identifier identifier)
Definition:
BallastFloraPrefab.cs:24
Barotrauma.BallastFloraPrefab.Dispose
override void Dispose()
Definition:
BallastFloraPrefab.cs:29
Barotrauma.ContentXElement
Definition:
ContentXElement.cs:13
Barotrauma.ContentXElement.GetAttributeString
string? GetAttributeString(string key, string? def)
Barotrauma.LocalizedString
Definition:
LocalizedString.cs:8
Barotrauma.LocalizedString.Fallback
LocalizedString Fallback(LocalizedString fallback, bool useDefaultLanguageIfFound=true)
Use this text instead if the original text cannot be found.
Definition:
LocalizedString.cs:116
Barotrauma.PrefabCollection
Definition:
PrefabCollection.cs:14
Barotrauma.Prefab
Definition:
Prefab.cs:11
Barotrauma.Prefab.Identifier
readonly Identifier Identifier
Definition:
Prefab.cs:34
Barotrauma
Definition:
AchievementManager.cs:12
Barotrauma
BarotraumaShared
SharedSource
Map
Creatures
BallastFloraPrefab.cs
Generated by
1.9.1