Class: Artifact
- Namespace:
Global - Assembly:
Dew.Core.dll - Inheritance / Derived: DewNetworkBehaviour → Actor
csharp
[DewResourceLink(ResourceLinkBy.Type)]
public class Artifact : Actor, ILogicUpdate, ICleanup, ICustomDestroyRoutine, IInteractable, ICustomInteractableFields
| Name | Declaration | Description |
|---|---|---|
icon | public Sprite icon | |
mainColor | `[ColorUsage(false)] | |
| public Color mainColor` | ||
touchSound | public DewAudioClip touchSound |
Properties
| Name | Declaration | Description |
|---|---|---|
altInteractProgress | public float? altInteractProgress { get; } | |
canAltInteract | public bool canAltInteract { get; } | |
canInteractWithMouse | public bool canInteractWithMouse { get; } | |
cost | public Cost cost { get; } | |
focusDistance | public float focusDistance { get; } | |
grantedStardust | public int grantedStardust { get; } | |
interactActionRawText | public string interactActionRawText { get; } | |
interactAltActionRawText | public string interactAltActionRawText { get; } | |
interactPivot | public Transform interactPivot { get; } | |
nameRawText | public string nameRawText { get; } | |
priority | public int priority { get; } |
Methods
CanInteract(Entity)
csharp
public bool CanInteract(Entity entity)Parameters:
| Name | Type | Description |
|---|---|---|
entity | Entity |
Returns: bool
OnCreate()
csharp
protected override void OnCreate()OnDestroyActor()
csharp
protected override void OnDestroyActor()OnInteract(Entity, bool)
csharp
public void OnInteract(Entity entity, bool alt)Parameters:
| Name | Type | Description |
|---|---|---|
entity | Entity | |
alt | bool |