Class Hint
Useful class to save hint configs in a cleaner way.
Inheritance
System.Object
Hint
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.API.Features
Assembly: Exiled.API.dll
Syntax
public class Hint
Constructors
| Improve this Doc View SourceHint()
Initializes a new instance of the Hint class.
Declaration
public Hint()
Hint(String, Single, Boolean)
Initializes a new instance of the Hint class.
Declaration
public Hint(string content, float duration = 3F, bool show = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | content | The content of the hint>. |
System.Single | duration | The duration of the hint, in seconds. |
System.Boolean | show | Whether or not the hint should be shown. |
Properties
| Improve this Doc View SourceContent
Gets or sets the hint content.
Declaration
public string Content { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Duration
Gets or sets the hint duration.
Declaration
public float Duration { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Show
Gets or sets a value indicating whether the hint should be shown or not.
Declaration
public bool Show { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceToString()
Returns the hint in a human-readable format.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string containing hint-related data. |
Overrides
System.Object.ToString()