Barotrauma Client Doc
Barotrauma.EditableParams Class Reference
Inheritance diagram for Barotrauma.EditableParams:
Barotrauma.ISerializableEntity Barotrauma.AnimationParams Barotrauma.CharacterParams Barotrauma.RagdollParams Barotrauma.GroundedMovementParams Barotrauma.SwimParams Barotrauma.FishRagdollParams Barotrauma.HumanRagdollParams Barotrauma.FishGroundedParams Barotrauma.HumanGroundedParams Barotrauma.FishSwimParams Barotrauma.HumanSwimParams Barotrauma.FishRunParams Barotrauma.FishWalkParams Barotrauma.HumanCrouchParams Barotrauma.HumanRunParams Barotrauma.HumanWalkParams Barotrauma.FishSwimFastParams Barotrauma.FishSwimSlowParams Barotrauma.HumanSwimFastParams Barotrauma.HumanSwimSlowParams

Public Member Functions

virtual bool Save (string fileNameWithoutExtension=null, System.Xml.XmlWriterSettings settings=null)
 
virtual bool Reset (bool forceReload=false)
 
virtual void AddToEditor (ParamsEditor editor, int space=0)
 

Protected Member Functions

ContentXElement CreateElement (string name, params object[] attrs)
 
virtual string GetName ()
 
virtual bool Deserialize (XElement element=null)
 
virtual bool Serialize (XElement element=null)
 
virtual bool Load (ContentPath file)
 
virtual void UpdatePath (ContentPath fullPath)
 

Protected Attributes

ContentXElement rootElement
 
XDocument doc
 

Properties

bool IsLoaded [get, protected set]
 
string Name [get]
 
string FileName [get]
 
string Folder [get]
 
ContentPath Path = ContentPath.Empty [get, protected set]
 
Dictionary< Identifier, SerializablePropertySerializableProperties [get, protected set]
 
virtual ContentXElementMainElement [get]
 
ContentXElement OriginalElement [get, protected set]
 
SerializableEntityEditor SerializableEntityEditor [get, protected set]
 
- Properties inherited from Barotrauma.ISerializableEntity
string Name [get]
 
Dictionary< Identifier, SerializablePropertySerializableProperties [get]
 

Detailed Description

Definition at line 14 of file EditableParams.cs.

Member Function Documentation

◆ AddToEditor()

virtual void Barotrauma.EditableParams.AddToEditor ( ParamsEditor  editor,
int  space = 0 
)
virtual

Definition at line 150 of file EditableParams.cs.

◆ CreateElement()

ContentXElement Barotrauma.EditableParams.CreateElement ( string  name,
params object[]  attrs 
)
protected

◆ Deserialize()

virtual bool Barotrauma.EditableParams.Deserialize ( XElement  element = null)
protectedvirtual

Definition at line 62 of file EditableParams.cs.

◆ GetName()

virtual string Barotrauma.EditableParams.GetName ( )
protectedvirtual

Reimplemented in Barotrauma.CharacterParams.

◆ Load()

virtual bool Barotrauma.EditableParams.Load ( ContentPath  file)
protectedvirtual

Definition at line 81 of file EditableParams.cs.

◆ Reset()

virtual bool Barotrauma.EditableParams.Reset ( bool  forceReload = false)
virtual

Reimplemented in Barotrauma.RagdollParams, and Barotrauma.CharacterParams.

Definition at line 139 of file EditableParams.cs.

◆ Save()

virtual bool Barotrauma.EditableParams.Save ( string  fileNameWithoutExtension = null,
System.Xml.XmlWriterSettings  settings = null 
)
virtual

Definition at line 110 of file EditableParams.cs.

◆ Serialize()

virtual bool Barotrauma.EditableParams.Serialize ( XElement  element = null)
protectedvirtual

Definition at line 69 of file EditableParams.cs.

◆ UpdatePath()

virtual void Barotrauma.EditableParams.UpdatePath ( ContentPath  fullPath)
protectedvirtual

Reimplemented in Barotrauma.AnimationParams, and Barotrauma.RagdollParams.

Definition at line 102 of file EditableParams.cs.

Member Data Documentation

◆ doc

XDocument Barotrauma.EditableParams.doc
protected

Definition at line 24 of file EditableParams.cs.

◆ rootElement

ContentXElement Barotrauma.EditableParams.rootElement
protected

Definition at line 23 of file EditableParams.cs.

Property Documentation

◆ FileName

string Barotrauma.EditableParams.FileName
get

Definition at line 18 of file EditableParams.cs.

◆ Folder

string Barotrauma.EditableParams.Folder
get

Definition at line 19 of file EditableParams.cs.

◆ IsLoaded

bool Barotrauma.EditableParams.IsLoaded
getprotected set

Definition at line 16 of file EditableParams.cs.

◆ MainElement

virtual ContentXElement? Barotrauma.EditableParams.MainElement
get

Definition at line 43 of file EditableParams.cs.

◆ Name

string Barotrauma.EditableParams.Name
get

Definition at line 17 of file EditableParams.cs.

◆ OriginalElement

ContentXElement Barotrauma.EditableParams.OriginalElement
getprotected set

Definition at line 55 of file EditableParams.cs.

◆ Path

ContentPath Barotrauma.EditableParams.Path = ContentPath.Empty
getprotected set

Definition at line 20 of file EditableParams.cs.

◆ SerializableEntityEditor

SerializableEntityEditor Barotrauma.EditableParams.SerializableEntityEditor
getprotected set

Definition at line 149 of file EditableParams.cs.

◆ SerializableProperties

Dictionary<Identifier, SerializableProperty> Barotrauma.EditableParams.SerializableProperties
getprotected set

Definition at line 21 of file EditableParams.cs.