Class Symbol
Manages a text symbol used by quest system. Symbols are used by resources, tasks, and text replacement.
Namespace: DaggerfallWorkshop.Game.Questing
Assembly: Assembly-CSharp.dll
Syntax
public class Symbol
Constructors
| Improve this Doc View SourceSymbol()
Default constructor.
Declaration
public Symbol()
Symbol(String)
Set symbol constructor.
Declaration
public Symbol(string original)
Parameters
Type | Name | Description |
---|---|---|
String | original | Symbol text from source. |
Properties
| Improve this Doc View SourceName
Gets name of symbol stripped to inner symbol name only. This is what should be used by quest system.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
Original
Gets original symbol at time it was set from source. This is used for serialization/deserialization only.
Declaration
public string Original { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
| Improve this Doc View SourceClone()
Clone this symbol.
Declaration
public Symbol Clone()
Returns
Type | Description |
---|---|
Symbol | New Symbol with same details as this one. |
Equals(Object)
Compare value equality with another symbol.
Declaration
public override bool Equals(object other)
Parameters
Type | Name | Description |
---|---|---|
Object | other | Other symbol. |
Returns
Type | Description |
---|---|
Boolean | True is values match. |
Overrides
| Improve this Doc View SourceGetHashCode()
Override of GetHashCode. Name is most important value. Original is only serialized for reference.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | Name.GetHashCode() |
Overrides
| Improve this Doc View SourceGetValue()
Gets original value.
Declaration
public string GetValue()
Returns
Type | Description |
---|---|
String | Symbol text from source. |
SetValue(String)
Set symbol original value. Name value is derived from inner text.
Declaration
public void SetValue(string original)
Parameters
Type | Name | Description |
---|---|---|
String | original | Symbol text from source. |