Barotrauma Client
|
Contains character data that should be editable in the character editor. More...
Classes | |
class | AIParams |
class | HealthParams |
class | InventoryParams |
class | ParticleParams |
class | SoundParams |
class | SubParam |
class | TargetParams |
Public Member Functions | |
CharacterParams (CharacterFile file) | |
bool | Load () |
bool | Save (string fileNameWithoutExtension=null) |
override bool | Reset (bool forceReload=false) |
bool | Deserialize (XElement element=null, bool alsoChildren=true, bool recursive=true, bool loadDefaultValues=true) |
bool | Serialize (XElement element=null, bool alsoChildren=true, bool recursive=true) |
bool | AddSound () |
void | AddInventory () |
void | AddBloodEmitter () |
void | AddGibEmitter () |
void | AddDamageEmitter () |
bool | RemoveSound (SoundParams soundParams) |
bool | RemoveBloodEmitter (ParticleParams emitter) |
bool | RemoveGibEmitter (ParticleParams emitter) |
bool | RemoveDamageEmitter (ParticleParams emitter) |
bool | RemoveInventory (InventoryParams inventory) |
![]() | |
virtual bool | Save (string fileNameWithoutExtension=null, System.Xml.XmlWriterSettings settings=null) |
Static Public Member Functions | |
static XElement | CreateVariantXml (XElement variantXML, XElement baseXML) |
static bool | CompareGroup (Identifier group1, Identifier group2) |
Public Attributes | |
readonly CharacterFile | File |
readonly List< SubParam > | SubParams = new List<SubParam>() |
readonly List< SoundParams > | Sounds = new List<SoundParams>() |
readonly List< ParticleParams > | BloodEmitters = new List<ParticleParams>() |
readonly List< ParticleParams > | GibEmitters = new List<ParticleParams>() |
readonly List< ParticleParams > | DamageEmitters = new List<ParticleParams>() |
readonly List< InventoryParams > | Inventories = new List<InventoryParams>() |
Protected Member Functions | |
override string | GetName () |
void | CreateSubParams () |
bool | RemoveSubParam< T > (T subParam, IList< T > collection=null) |
bool | TryAddSubParam< T > (ContentXElement element, Func< ContentXElement, CharacterParams, T > constructor, out T subParam, IList< T > collection=null, Func< IList< T >, bool > filter=null) |
![]() | |
ContentXElement | CreateElement (string name, params object[] attrs) |
virtual bool | Deserialize (XElement element=null) |
virtual bool | Serialize (XElement element=null) |
virtual bool | Load (ContentPath file) |
virtual void | UpdatePath (ContentPath fullPath) |
Properties | |
Identifier | SpeciesName [get] |
Identifier | SpeciesTranslationOverride [get] |
string | DisplayName [get] |
Identifier | Group [get] |
bool | Humanoid [get] |
bool | HasInfo [get] |
bool | CanInteract [get] |
bool | Husk [get] |
bool | UseHuskAppendage [get] |
bool | NeedsAir [get, set] |
bool | NeedsWater [get, set] |
bool | UseHumanAI [get, set] |
bool | IsMachine [get, set] |
bool | CanSpeak [get, set] |
bool | ShowHealthBar [get] |
bool | UseBossHealthBar [get] |
float | Noise [get, set] |
float | Visibility [get, set] |
string | BloodDecal [get] |
string | BleedParticleAir [get] |
string | BleedParticleWater [get] |
float | BleedParticleMultiplier [get] |
bool | CanEat [get, set] |
float | EatingSpeed [get, set] |
bool | UsePathFinding [get, set] |
float | PathFinderPriority [get, set] |
bool | HideInSonar [get, set] |
bool | HideInThermalGoggles [get, set] |
float | SonarDisruption [get, set] |
float | DistantSonarRange [get, set] |
float | DisableDistance [get, set] |
float | SoundInterval [get, set] |
bool | DrawLast [get, set] |
float | AITurretPriority [get, set] |
float | AISlowTurretPriority [get, set] |
Identifier | DespawnContainer [get] |
XDocument | VariantFile [get] |
HealthParams | Health [get] |
AIParams | AI [get] |
Parameters for EnemyAIController. Not used by HumanAIController. | |
override ContentXElement | MainElement [get] |
![]() | |
bool | IsLoaded [get, protected set] |
string | Name [get] |
string | FileName [get] |
string | FileNameWithoutExtension [get] |
string | Folder [get] |
ContentPath | Path = ContentPath.Empty [get, protected set] |
Dictionary< Identifier, SerializableProperty > | SerializableProperties [get, protected set] |
virtual ContentXElement | MainElement [get] |
ContentXElement | OriginalElement [get, protected set] |
![]() |
Additional Inherited Members | |
![]() | |
ContentXElement | rootElement |
XDocument | doc |
Contains character data that should be editable in the character editor.
Barotrauma.CharacterParams.CharacterParams | ( | CharacterFile | file | ) |
void Barotrauma.CharacterParams.AddBloodEmitter | ( | ) |
void Barotrauma.CharacterParams.AddDamageEmitter | ( | ) |
void Barotrauma.CharacterParams.AddGibEmitter | ( | ) |
void Barotrauma.CharacterParams.AddInventory | ( | ) |
bool Barotrauma.CharacterParams.AddSound | ( | ) |
|
static |
|
protected |
|
static |
bool Barotrauma.CharacterParams.Deserialize | ( | XElement | element = null, |
bool | alsoChildren = true, | ||
bool | recursive = true, | ||
bool | loadDefaultValues = true ) |
|
protectedvirtual |
Reimplemented from Barotrauma.EditableParams.
bool Barotrauma.CharacterParams.Load | ( | ) |
bool Barotrauma.CharacterParams.RemoveBloodEmitter | ( | ParticleParams | emitter | ) |
bool Barotrauma.CharacterParams.RemoveDamageEmitter | ( | ParticleParams | emitter | ) |
bool Barotrauma.CharacterParams.RemoveGibEmitter | ( | ParticleParams | emitter | ) |
bool Barotrauma.CharacterParams.RemoveInventory | ( | InventoryParams | inventory | ) |
bool Barotrauma.CharacterParams.RemoveSound | ( | SoundParams | soundParams | ) |
|
protected |
T | : | SubParam |
|
virtual |
Reimplemented from Barotrauma.EditableParams.
bool Barotrauma.CharacterParams.Save | ( | string | fileNameWithoutExtension = null | ) |
bool Barotrauma.CharacterParams.Serialize | ( | XElement | element = null, |
bool | alsoChildren = true, | ||
bool | recursive = true ) |
|
protected |
T | : | SubParam |
readonly List<ParticleParams> Barotrauma.CharacterParams.BloodEmitters = new List<ParticleParams>() |
readonly List<ParticleParams> Barotrauma.CharacterParams.DamageEmitters = new List<ParticleParams>() |
readonly CharacterFile Barotrauma.CharacterParams.File |
readonly List<ParticleParams> Barotrauma.CharacterParams.GibEmitters = new List<ParticleParams>() |
readonly List<InventoryParams> Barotrauma.CharacterParams.Inventories = new List<InventoryParams>() |
readonly List<SoundParams> Barotrauma.CharacterParams.Sounds = new List<SoundParams>() |
|
get |
Parameters for EnemyAIController. Not used by HumanAIController.
|
getset |
|
getset |
|
get |
|
get |
|
get |
|
get |
|
getset |
|
get |
|
getset |
|
get |
|
getset |
|
get |
|
getset |
|
getset |
|
getset |
|
get |
|
get |
|
get |
|
getset |
|
getset |
|
get |
|
get |
|
getset |
|
get |
|
getset |
|
getset |
|
getset |
|
getset |
|
get |
|
getset |
|
getset |
|
get |
|
get |
|
get |
|
getset |
|
get |
|
getset |
|
get |
|
getset |