Fix ScheduleInput docstring (#114)

This commit is contained in:
huantian 2022-06-23 17:05:27 -07:00 committed by GitHub
parent 9d6b2d25ee
commit cfc137e749
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,17 +23,18 @@ namespace HeavenStudio.Games
public List<PlayerActionEvent> scheduledInputs = new List<PlayerActionEvent>(); public List<PlayerActionEvent> scheduledInputs = new List<PlayerActionEvent>();
/** /// <summary>
* Schedule an Input for a later time in the minigame. Executes the methods put in parameters /// Schedule an Input for a later time in the minigame. Executes the methods put in parameters
* /// </summary>
* float startBeat : When the scheduling started (In beats) /// <param name="startBeat">When the scheduling started (in beats)</param>
* float timer : How many beats later should the input be expected /// <param name="timer">How many beats later should the input be expected</param>
* InputType inputType : The type of the input that's expected (Press, release, A, B, Directions..) (Check InputType class for a list) /// <param name="inputType">The type of the input that's expected (Press, Release, A, B, Directions>)</param>
* ActionEventCallbackState OnHit : Method to run if the Input has been Hit /// <param name="OnHit">Method to run if the Input has been Hit</param>
* ActionEventCallback OnMiss : Method to run if the Input has been Missed /// <param name="OnMiss">Method to run if the Input has been Missed</param>
* ActionEventCallback OnBlank : Method to run whenever there's an Input while this is Scheduled (Shouldn't be used too much) /// <param name="OnBlank">Method to run whenever there's an Input while this is Scheduled (Shouldn't be used too much)</param>
*/ /// <returns></returns>
public PlayerActionEvent ScheduleInput(float startBeat, public PlayerActionEvent ScheduleInput(
float startBeat,
float timer, float timer,
InputType inputType, InputType inputType,
PlayerActionEvent.ActionEventCallbackState OnHit, PlayerActionEvent.ActionEventCallbackState OnHit,