HPL3/Amnesia: Rebirth/Scripting/cXmlElement
< HPL3 | Amnesia: Rebirth | Scripting
Jump to navigation
Jump to search
This page has been automatically generated, but it needs descriptions added to the various fields/functions in order to be complete. |
Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!
Contents
- 1 Fields
- 2 Functions
- 3 Details
- 3.1 CreateChildElement
- 3.2 CreateChildText
- 3.3 GetAttributeBool
- 3.4 GetAttributeColor
- 3.5 GetAttributeFloat
- 3.6 GetAttributeInt
- 3.7 GetAttributeString
- 3.8 GetAttributeVector2f
- 3.9 GetAttributeVector3f
- 3.10 GetChildIterator
- 3.11 GetFirstElement
- 3.12 GetFirstElement
- 3.13 GetFirstText
- 3.14 GetFirstText
- 3.15 GetParent
- 3.16 GetType
- 3.17 GetValue
- 3.18 SetAttributeBool
- 3.19 SetAttributeColor
- 3.20 SetAttributeFloat
- 3.21 SetAttributeInt
- 3.22 SetAttributeString
- 3.23 SetAttributeVector2f
- 3.24 SetAttributeVector3f
- 3.25 SetValue
- 3.26 ToElement
- 3.27 ToText
- 4 References
Fields
cXmlElement has no public fields.
Functions
Return Type | Function And Description |
---|---|
cXmlElement | CreateChildElement(const tString &in asName) |
cXmlText | CreateChildText(const tString &in asText) |
bool | GetAttributeBool(const tString &in asName, bool abDefault) |
cColor | GetAttributeColor(const tString &in asName, const cColor &in aDefault) |
float | GetAttributeFloat(const tString &in asName, float afDefault) |
int | GetAttributeInt(const tString &in asName, int alDefault) |
tString | GetAttributeString(const tString &in asName, const tString &in asDefault) |
cVector2f | GetAttributeVector2f(const tString &in asName, const cVector2f &in avDefault) |
cVector3f | GetAttributeVector3f(const tString &in asName, const cVector3f &in avDefault) |
cXmlNodeListIterator | GetChildIterator() |
cXmlElement | GetFirstElement() |
cXmlElement | GetFirstElement(const tString &in asName) |
cXmlText | GetFirstText() |
cXmlText | GetFirstText(const tString &in asText) |
iXmlNode | GetParent() |
eXmlNodeType | GetType() |
tString | GetValue() |
void | SetAttributeBool(const tString &in asName, bool abVal) |
void | SetAttributeColor(const tString &in asName, const cColor &in aVal) |
void | SetAttributeFloat(const tString &in asName, float afVal) |
void | SetAttributeInt(const tString &in asName, int alVal) |
void | SetAttributeString(const tString &in asName, const tString &in asVal) |
void | SetAttributeVector2f(const tString &in asName, const cVector2f &in avVal) |
void | SetAttributeVector3f(const tString &in asName, const cVector3f &in avVal) |
void | SetValue(const tString &in asValue) |
cXmlElement | ToElement() |
cXmlText | ToText() |
Details
CreateChildElement
cXmlElement@ CreateChildElement(const tString &in asName)
Parameters
- asName (tString) —
Returns:
- cXmlElement@—
CreateChildText
cXmlText@ CreateChildText(const tString &in asText)
Parameters
- asText (tString) —
Returns:
- cXmlText@—
GetAttributeBool
bool GetAttributeBool(const tString &in asName,
bool abDefault)
Parameters
- asName (tString) —
- abDefault (bool) —
Returns:
- bool—
GetAttributeColor
GetAttributeFloat
float GetAttributeFloat(const tString &in asName,
float afDefault)
Parameters
- asName (tString) —
- afDefault (float) —
Returns:
- float—
GetAttributeInt
int GetAttributeInt(const tString &in asName,
int alDefault)
Parameters
- asName (tString) —
- alDefault (int) —
Returns:
- int—
GetAttributeString
GetAttributeVector2f
GetAttributeVector3f
GetChildIterator
cXmlNodeListIterator@ GetChildIterator()
Returns:
- cXmlNodeListIterator@—
GetFirstElement
cXmlElement@ GetFirstElement()
Returns:
- cXmlElement@—
GetFirstElement
cXmlElement@ GetFirstElement(const tString &in asName)
Parameters
- asName (tString) —
Returns:
- cXmlElement@—
GetFirstText
cXmlText@ GetFirstText()
Returns:
- cXmlText@—
GetFirstText
GetParent
iXmlNode@ GetParent()
Returns:
- iXmlNode@—
GetType
eXmlNodeType GetType()
Returns:
- eXmlNodeType—
GetValue
const tString& GetValue()
Returns:
- const tString&—
SetAttributeBool
void SetAttributeBool(const tString &in asName,
bool abVal)
Parameters
- asName (tString) —
- abVal (bool) —
Returns:
- void
SetAttributeColor
SetAttributeFloat
void SetAttributeFloat(const tString &in asName,
float afVal)
Parameters
- asName (tString) —
- afVal (float) —
Returns:
- void
SetAttributeInt
void SetAttributeInt(const tString &in asName,
int alVal)
Parameters
- asName (tString) —
- alVal (int) —
Returns:
- void
SetAttributeString
SetAttributeVector2f
SetAttributeVector3f
SetValue
ToElement
cXmlElement@ ToElement()
Returns:
- cXmlElement@—
ToText
cXmlText@ ToText()
Returns:
- cXmlText@—