Interface IEffectsSink
- Namespace
- MoonBark.GridPlacement.Core.Interfaces
- Assembly
- MoonBark.GridPlacement.Core.dll
Interface for visual effects in the placement system. Handles preview rendering, feedback effects, and visual indicators.
public interface IEffectsSink
Methods
CancelManipulation()
Cancels the current manipulation operation.
void CancelManipulation()
CancelPlacement()
Cancels the current placement operation.
void CancelPlacement()
ClearIndicator()
Clears the current indicator.
void ClearIndicator()
ClearPreview()
Clears the current preview.
void ClearPreview()
CommitManipulation()
Commits the current manipulation operation.
void CommitManipulation()
CommitPlacement()
Commits the current placement operation.
void CommitPlacement()
EnsurePreviewExists(PlaceableId)
Ensures a preview exists for the specified placeable.
void EnsurePreviewExists(PlaceableId placeableId)
Parameters
placeableIdPlaceableIdID of the placeable to preview.
PlayFeedback(FeedbackId)
Plays a feedback effect (e.g., placement success sound, error animation).
void PlayFeedback(FeedbackId feedbackId)
Parameters
feedbackIdFeedbackIdID of the feedback effect to play.
ShowIndicator(object)
Shows an indicator at the specified location.
void ShowIndicator(object indicatorData)
Parameters
indicatorDataobjectData for the indicator to show.
StartManipulation(object)
Starts a manipulation operation.
void StartManipulation(object manipulationData)
Parameters
manipulationDataobjectData for the manipulation to start.
UpdateManipulation(object)
Updates an ongoing manipulation operation.
void UpdateManipulation(object manipulationData)
Parameters
manipulationDataobjectData to update the manipulation with.
UpdatePreview(object)
Updates the preview with new data.
void UpdatePreview(object previewData)
Parameters
previewDataobjectData to update the preview with.