Style Slasher
A dressup combat roguelike created by Scrungle Studios for the 2025 Swinburne Capstone project.
Slasher.Input.MenuInputsContainer Class Reference
Inheritance diagram for Slasher.Input.MenuInputsContainer:
Inheritance graph
Collaboration diagram for Slasher.Input.MenuInputsContainer:
Collaboration graph

Classes

class  CancelInputHandler
 
class  ConfirmInputHandler
 
class  NavigateInputHandler
 

Public Member Functions

 MenuInputsContainer (MonoBehaviour owner)
 
Parameters
callerThe MonoBehaviour this input will belong to. Required to start coroutines.

 

Properties

override List< BaseInputHandlerhandlers [get]
 
- Properties inherited from Slasher.Input.BaseInputsContainer
List< BaseInputHandlerhandlers [get]
 

Events

Action< Vector2 > OnNavigate [add, remove]
 Called when a new cardinal or intercardinal direction is inputted, or spammed as a result of the input being held.
 
Action OnConfirm [add, remove]
 Called when the Confirm input is performed.
 
Action OnCancel [add, remove]
 Called when the Cancel input is performed.
 

Private Member Functions

IEnumerator PollInputCoroutine ()
 Repeatedly polls the navigateInputHandler to check if it should fire another input due to the input still being held.
 

Private Attributes

List< BaseInputHandlerhandlersBuffer
 
NavigateInputHandler navigateInputHandler = new()
 
ConfirmInputHandler confirmInputHandler = new()
 
CancelInputHandler cancelInputHandler = new()
 
MonoBehaviour owner
 
int navigateListeners
 

Static Private Attributes

const string ACTION_MAP_PATH = "Menu"
 

Constructor & Destructor Documentation

◆ MenuInputsContainer()

Slasher.Input.MenuInputsContainer.MenuInputsContainer ( MonoBehaviour owner)

Parameters
callerThe MonoBehaviour this input will belong to. Required to start coroutines.

Member Function Documentation

◆ PollInputCoroutine()

IEnumerator Slasher.Input.MenuInputsContainer.PollInputCoroutine ( )
private

Repeatedly polls the navigateInputHandler to check if it should fire another input due to the input still being held.

I hate having to do this so much but it is what it is

Member Data Documentation

◆ ACTION_MAP_PATH

const string Slasher.Input.MenuInputsContainer.ACTION_MAP_PATH = "Menu"
staticprivate

◆ cancelInputHandler

CancelInputHandler Slasher.Input.MenuInputsContainer.cancelInputHandler = new()
private

◆ confirmInputHandler

ConfirmInputHandler Slasher.Input.MenuInputsContainer.confirmInputHandler = new()
private

◆ handlersBuffer

List<BaseInputHandler> Slasher.Input.MenuInputsContainer.handlersBuffer
private

◆ navigateInputHandler

NavigateInputHandler Slasher.Input.MenuInputsContainer.navigateInputHandler = new()
private

◆ navigateListeners

int Slasher.Input.MenuInputsContainer.navigateListeners
private

◆ owner

MonoBehaviour Slasher.Input.MenuInputsContainer.owner
private

Property Documentation

◆ handlers

override List<BaseInputHandler> Slasher.Input.MenuInputsContainer.handlers
getprotected

Event Documentation

◆ OnCancel

Action Slasher.Input.MenuInputsContainer.OnCancel
addremove

Called when the Cancel input is performed.

◆ OnConfirm

Action Slasher.Input.MenuInputsContainer.OnConfirm
addremove

Called when the Confirm input is performed.

◆ OnNavigate

Action<Vector2> Slasher.Input.MenuInputsContainer.OnNavigate
addremove

Called when a new cardinal or intercardinal direction is inputted, or spammed as a result of the input being held.


The documentation for this class was generated from the following file: