Barotrauma Server
Loading...
Searching...
No Matches
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.
 
override void Dispose ()
 
- Public Member Functions inherited from Barotrauma.Prefab
 Prefab (ContentFile file, Identifier identifier)
 
 Prefab (ContentFile file, ContentXElement element)
 
void Dispose ()
 

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 Hearing = 1.0f [get, set]
 
float ReportRange [get, protected set]
 
float FindWeaponsRange [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)
 

Constructor & Destructor Documentation

◆ CorpsePrefab()

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

Member Function Documentation

◆ Dispose()

override void Barotrauma.CorpsePrefab.Dispose ( )

◆ Get()

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

◆ 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

Property Documentation

◆ MaxMoney

int Barotrauma.CorpsePrefab.MaxMoney
get

◆ MinMoney

int Barotrauma.CorpsePrefab.MinMoney
get

◆ SpawnPosition

Level.PositionType Barotrauma.CorpsePrefab.SpawnPosition
get

The documentation for this class was generated from the following file: