Table of Contents

Interface IInteractable

Namespace
Squiggles.Core.Interaction
Assembly
SquigglesCommon4X.dll

An interface for allowing an object to be interacted with. Requires some processing in the controller otherwise, but works quite well.

public interface IInteractable

Methods

GetActiveName()

Returns the name of the object (through this method to allow dynamic changes). Use a translation key to support internationalization

string GetActiveName()

Returns

string

a string of the name which this object is.

GetIsActive()

Determines if the interactable object is currently able to be interacted with.

bool GetIsActive()

Returns

bool

true if currently able to interact

Interact()

Called to perform the interaction action.

bool Interact()

Returns

bool

true if the action was a success.