Skip to content

Interface: IInteractable ​

  • Namespace: Global
  • Assembly: Dew.Core.dll
csharp
public interface IInteractable

Properties ​

NameDeclarationDescription
canInteractWithMousebool canInteractWithMouse { get; }
focusDistancefloat focusDistance { get; }
interactPivotTransform interactPivot { get; }
priorityint priority { get; }Lower values are prioritized

Methods ​

CanInteract(Entity) ​

Can this object be interacted by given entity? Checked everywhere, hence this should return consistent results regardless of caller.

csharp
bool CanInteract(Entity entity)

Parameters:

NameTypeDescription
entityEntity

Returns: bool

OnInteract(Entity, bool) ​

Called everywhere when an entity interacts with an interactable.

csharp
void OnInteract(Entity entity, bool alt)

Parameters:

NameTypeDescription
entityEntity
altbool

Maintained by the Shape of Dreams Modding Community