Class EquipCharmOnGiveTag
Tag applied to a charm item so that the charm is equipped when given.
Inherited Members
Namespace: ItemChanger.Tags
Assembly: ItemChanger.dll
Syntax
[TagConstrainedTo<CharmItem>]
public class EquipCharmOnGiveTag : Tag
Constructors
View SourceEquipCharmOnGiveTag()
Declaration
public EquipCharmOnGiveTag()
Methods
View SourceAfterGiveItem(ReadOnlyGiveEventArgs)
Declaration
public void AfterGiveItem(ReadOnlyGiveEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlyGiveEventArgs | args |
Load(object)
Virtual method called on tags when their parent loads. The base method checks and throws an exception if the tag is already loaded.
This should not be called directly. Instead, use "LoadOnce" to load and set the Loaded property.
Declaration
public override void Load(object parent)
Parameters
| Type | Name | Description |
|---|---|---|
| object | parent |
Overrides
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | The tag is already loaded. |
Unload(object)
Virtual method called on tags when their parent unloads. The base method checks and throws an exception if the tag is not loaded.
This should not be called directly. Instead, use "UnloadOnce" to unload and set the Loaded property.
Declaration
public override void Unload(object parent)
Parameters
| Type | Name | Description |
|---|---|---|
| object | parent |
Overrides
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | The tag is not loaded. |