Class Artifact
Inheritance
object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Mirror.NetworkBehaviour
Artifact
Assembly: Dew.Core.dll
Syntax
[DewResourceLink(ResourceLinkBy.Type)]
public class Artifact : Actor, ILogicUpdate, ICleanup, ICustomDestroyRoutine, IInteractable, ICustomInteractable
Fields
icon
Declaration
Field Value
| Type |
Description |
| UnityEngine.Sprite |
|
mainColor
Declaration
[ColorUsage(false)]
public Color mainColor
Field Value
| Type |
Description |
| UnityEngine.Color |
|
touchSound
Declaration
public DewAudioClip touchSound
Field Value
Properties
altInteractProgress
Declaration
public float? altInteractProgress { get; }
Property Value
canAltInteract
Declaration
public bool canAltInteract { get; }
Property Value
canInteractWithMouse
Declaration
public bool canInteractWithMouse { get; }
Property Value
cost
Declaration
public Cost cost { get; }
Property Value
focusDistance
Declaration
public float focusDistance { get; }
Property Value
grantedStardust
Declaration
public int grantedStardust { get; }
Property Value
interactActionRawText
Declaration
public string interactActionRawText { get; }
Property Value
interactAltActionRawText
Declaration
public string interactAltActionRawText { get; }
Property Value
interactPivot
Declaration
public Transform interactPivot { get; }
Property Value
| Type |
Description |
| UnityEngine.Transform |
|
nameRawText
Declaration
public string nameRawText { get; }
Property Value
priority
Declaration
public int priority { get; }
Property Value
Methods
CanInteract(Entity)
Declaration
public bool CanInteract(Entity entity)
Parameters
| Type |
Name |
Description |
| Entity |
entity |
|
Returns
OnCreate()
Declaration
protected override void OnCreate()
Overrides
OnDestroyActor()
Declaration
protected override void OnDestroyActor()
Overrides
OnInteract(Entity, bool)
Declaration
public void OnInteract(Entity entity, bool alt)
Parameters
| Type |
Name |
Description |
| Entity |
entity |
|
| bool |
alt |
|
Implements
Extension Methods