Barotrauma Client Doc
Barotrauma.CorpsePrefab Class Reference
Inheritance diagram for Barotrauma.CorpsePrefab:
Barotrauma.HumanPrefab Barotrauma.PrefabWithUintIdentifier Barotrauma.Prefab

Public Member Functions

override void Dispose ()
 
 CorpsePrefab (ContentXElement element, CorpsesFile file)
 
- Public Member Functions inherited from Barotrauma.HumanPrefab
 HumanPrefab (ContentXElement element, ContentFile file, Identifier npcSetIdentifier)
 
IEnumerable< IdentifierGetTags ()
 
IEnumerable< IdentifierGetModuleFlags ()
 
IEnumerable< IdentifierGetSpawnPointTags ()
 
JobPrefab GetJobPrefab (Rand.RandSync randSync=Rand.RandSync.Unsynced, Func< JobPrefab, bool > predicate=null)
 
void InitializeCharacter (Character npc, ISpatialEntity positionToStayIn=null)
 
bool GiveItems (Character character, Submarine submarine, WayPoint spawnPoint, Rand.RandSync randSync=Rand.RandSync.Unsynced, bool createNetworkEvents=true)
 
CharacterInfo CreateCharacterInfo (Rand.RandSync randSync=Rand.RandSync.Unsynced)
 Creates a character info from the human prefab. If there are custom character infos defined, those are used, otherwise a randomized info is generated. More...
 
override void Dispose ()
 
- Public Member Functions inherited from Barotrauma.Prefab
 Prefab (ContentFile file, Identifier identifier)
 
 Prefab (ContentFile file, ContentXElement element)
 

Static Public Member Functions

static CorpsePrefab Get (Identifier identifier)
 
static CorpsePrefab Random (Rand.RandSync sync=Rand.RandSync.Unsynced)
 
- Static Public Member Functions inherited from Barotrauma.HumanPrefab
static void InitializeItem (Character character, ContentXElement itemElement, Submarine submarine, HumanPrefab humanPrefab, WayPoint spawnPoint=null, Item parentItem=null, bool createNetworkEvents=true)
 
- Static Public Member Functions inherited from Barotrauma.Prefab
static void DisallowCallFromConstructor ()
 

Static Public Attributes

static readonly PrefabCollection< CorpsePrefabPrefabs = new PrefabCollection<CorpsePrefab>()
 
- Static Public Attributes inherited from Barotrauma.Prefab
static readonly ImmutableHashSet< Type > Types
 

Properties

Level.PositionType SpawnPosition [get]
 
int MinMoney [get]
 
int MaxMoney [get]
 
- Properties inherited from Barotrauma.HumanPrefab
Identifier Job [get, protected set]
 
float Commonness [get, protected set]
 
float HealthMultiplier [get, protected set]
 
float HealthMultiplierInMultiplayer [get, protected set]
 
float AimSpeed [get, protected set]
 
float AimAccuracy [get, protected set]
 
float SkillMultiplier [get, protected set]
 
int ExperiencePoints [get]
 
string Tags [get, set]
 
string ModuleFlags [get, set]
 
string SpawnPointTags [get, set]
 
CampaignMode.InteractionType CampaignInteractionType [get, protected set]
 
AIObjectiveIdle.BehaviorType Behavior [get, protected set]
 
float ReportRange [get, protected set]
 
Identifier[] PreferredOutpostModuleTypes [get, protected set]
 
Identifier Faction [get, set]
 
Identifier Group [get, set]
 
bool AllowDraggingIndefinitely [get, set]
 
XElement Element [get, protected set]
 
- Properties inherited from Barotrauma.PrefabWithUintIdentifier
UInt32 UintIdentifier [get, set]
 
- Properties inherited from Barotrauma.Prefab
ContentPackageContentPackage [get]
 
ContentPath FilePath [get]
 

Additional Inherited Members

- Public Attributes inherited from Barotrauma.HumanPrefab
readonly List<(ContentXElement element, float commonness)> ItemSets = new List<(ContentXElement element, float commonness)>()
 
readonly List<(ContentXElement element, float commonness)> CustomCharacterInfos = new List<(ContentXElement element, float commonness)>()
 
readonly Identifier NpcSetIdentifier
 
- Public Attributes inherited from Barotrauma.Prefab
readonly Identifier Identifier
 
readonly ContentFile ContentFile
 
- Protected Member Functions inherited from Barotrauma.PrefabWithUintIdentifier
 PrefabWithUintIdentifier (ContentFile file, Identifier identifier)
 
 PrefabWithUintIdentifier (ContentFile file, ContentXElement element)
 
- Protected Member Functions inherited from Barotrauma.Prefab
virtual Identifier DetermineIdentifier (XElement element)
 

Detailed Description

Definition at line 10 of file CorpsePrefab.cs.

Constructor & Destructor Documentation

◆ CorpsePrefab()

Barotrauma.CorpsePrefab.CorpsePrefab ( ContentXElement  element,
CorpsesFile  file 
)

Definition at line 43 of file CorpsePrefab.cs.

Member Function Documentation

◆ Dispose()

override void Barotrauma.CorpsePrefab.Dispose ( )
virtual

Implements Barotrauma.Prefab.

Definition at line 14 of file CorpsePrefab.cs.

◆ Get()

static CorpsePrefab Barotrauma.CorpsePrefab.Get ( Identifier  identifier)
static

Definition at line 16 of file CorpsePrefab.cs.

◆ Random()

static CorpsePrefab Barotrauma.CorpsePrefab.Random ( Rand.RandSync  sync = Rand.RandSync.Unsynced)
static

Member Data Documentation

◆ Prefabs

readonly PrefabCollection<CorpsePrefab> Barotrauma.CorpsePrefab.Prefabs = new PrefabCollection<CorpsePrefab>()
static

Definition at line 12 of file CorpsePrefab.cs.

Property Documentation

◆ MaxMoney

int Barotrauma.CorpsePrefab.MaxMoney
get

Definition at line 41 of file CorpsePrefab.cs.

◆ MinMoney

int Barotrauma.CorpsePrefab.MinMoney
get

Definition at line 38 of file CorpsePrefab.cs.

◆ SpawnPosition

Level.PositionType Barotrauma.CorpsePrefab.SpawnPosition
get

Definition at line 35 of file CorpsePrefab.cs.