tilesubmitsocket - eisclimber/ExPresS-XR GitHub Wiki

TileSubmitSocket

Class in ExPresSXR.Minigames.TileGame

Inherits from HighlightableSocketInteractor

Summary

Socket representing a slot in the board snapping TileVisuals certain rotations. For the tile game 4 steps = 90 degrees.

public class TileSubmitSocket : HighlightableSocketInteractor

Classes

Name Description
BoardSubmitContext Combines the tile visuals and board position of a tile submission.

Fields

Name Description
OnRotationSnapped Emitted when an interactable is submitted with the snapped rotation.
OnSubmitted Emitted when an interactable is submitted.
OnTileSubmitted Emitted when an interactable is submitted with the tile data and the board position as BoardSubmitContext.

Methods

Name Description
CanHover(IXRHoverInteractable) Determines if a XRGrabInteractable can hover, i.e. is considered a valid target.
Can be overwritten, but base.CanHover(interactable) should be called to ensure correct behavior.
CanSelect(IXRSelectInteractable) Determines if a XRGrabInteractable can be selected, i.e. is considered a valid target.
Can be overwritten, but base.CanSelect(interactable) should be called to ensure correct behavior.
ClearSelection() Clears the current selected interactable, destroying it.
DisplayScore(ScoreResults,AreaDescription[]) Displays the provided score in the tile, showing the score for each direction slightly delayed.

Properties

Name Description
BoardPos Position of this socket on the board.
SnapAngle Size of a step in degrees.
⚠️ **GitHub.com Fallback** ⚠️