|
| HumanPrefab (ContentXElement element, ContentFile file, Identifier npcSetIdentifier) |
|
IEnumerable< Identifier > | GetTags () |
|
IEnumerable< Identifier > | GetModuleFlags () |
|
IEnumerable< Identifier > | GetSpawnPointTags () |
|
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 () |
|
| Prefab (ContentFile file, Identifier identifier) |
|
| Prefab (ContentFile file, ContentXElement element) |
|
|
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] |
|
UInt32 | UintIdentifier [get, set] |
|
ContentPackage? | ContentPackage [get] |
|
ContentPath | FilePath [get] |
|
Definition at line 10 of file HumanPrefab.cs.
◆ HumanPrefab()
◆ CreateCharacterInfo()
CharacterInfo Barotrauma.HumanPrefab.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.
- Parameters
-
- Returns
Definition at line 216 of file HumanPrefab.cs.
◆ Dispose()
override void Barotrauma.HumanPrefab.Dispose |
( |
| ) |
|
|
virtual |
◆ GetJobPrefab()
JobPrefab Barotrauma.HumanPrefab.GetJobPrefab |
( |
Rand.RandSync |
randSync = Rand.RandSync.Unsynced , |
|
|
Func< JobPrefab, bool > |
predicate = null |
|
) |
| |
◆ GetModuleFlags()
IEnumerable<Identifier> Barotrauma.HumanPrefab.GetModuleFlags |
( |
| ) |
|
◆ GetSpawnPointTags()
IEnumerable<Identifier> Barotrauma.HumanPrefab.GetSpawnPointTags |
( |
| ) |
|
◆ GetTags()
IEnumerable<Identifier> Barotrauma.HumanPrefab.GetTags |
( |
| ) |
|
◆ GiveItems()
bool Barotrauma.HumanPrefab.GiveItems |
( |
Character |
character, |
|
|
Submarine |
submarine, |
|
|
WayPoint |
spawnPoint, |
|
|
Rand.RandSync |
randSync = Rand.RandSync.Unsynced , |
|
|
bool |
createNetworkEvents = true |
|
) |
| |
◆ InitializeCharacter()
◆ InitializeItem()
◆ CustomCharacterInfos
readonly List<(ContentXElement element, float commonness)> Barotrauma.HumanPrefab.CustomCharacterInfos = new List<(ContentXElement element, float commonness)>() |
◆ ItemSets
◆ NpcSetIdentifier
readonly Identifier Barotrauma.HumanPrefab.NpcSetIdentifier |
◆ AimAccuracy
float Barotrauma.HumanPrefab.AimAccuracy |
|
getprotected set |
◆ AimSpeed
float Barotrauma.HumanPrefab.AimSpeed |
|
getprotected set |
◆ AllowDraggingIndefinitely
bool Barotrauma.HumanPrefab.AllowDraggingIndefinitely |
|
getset |
◆ Behavior
◆ CampaignInteractionType
◆ Commonness
float Barotrauma.HumanPrefab.Commonness |
|
getprotected set |
◆ Element
XElement Barotrauma.HumanPrefab.Element |
|
getprotected set |
◆ ExperiencePoints
int Barotrauma.HumanPrefab.ExperiencePoints |
|
get |
◆ Faction
◆ Group
◆ HealthMultiplier
float Barotrauma.HumanPrefab.HealthMultiplier |
|
getprotected set |
◆ HealthMultiplierInMultiplayer
float Barotrauma.HumanPrefab.HealthMultiplierInMultiplayer |
|
getprotected set |
◆ Job
◆ ModuleFlags
string Barotrauma.HumanPrefab.ModuleFlags |
|
getset |
◆ PreferredOutpostModuleTypes
Identifier [] Barotrauma.HumanPrefab.PreferredOutpostModuleTypes |
|
getprotected set |
◆ ReportRange
float Barotrauma.HumanPrefab.ReportRange |
|
getprotected set |
◆ SkillMultiplier
float Barotrauma.HumanPrefab.SkillMultiplier |
|
getprotected set |
◆ SpawnPointTags
string Barotrauma.HumanPrefab.SpawnPointTags |
|
getset |
◆ Tags
string Barotrauma.HumanPrefab.Tags |
|
getset |