Skip to content

Commit 1049fa0

Browse files
andrew-ocekcohjamesmcgill
authored
Documentation bash (#1607)
* FIX: Added missing API documentation to InputAction.cs, InputActionAsset.cs, InputActionMap.cs, InputActionSetupExtensions.cs, InputSystem.cs, InputUpdateType.cs. Co-authored-by: Håkan Sidenvall <[email protected]> Co-authored-by: James McGill <[email protected]> Co-authored-by: James McGill <[email protected]>
1 parent d6c4f36 commit 1049fa0

File tree

6 files changed

+371
-13
lines changed

6 files changed

+371
-13
lines changed

Packages/com.unity.inputsystem/InputSystem/Actions/InputAction.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,11 @@ public InputAction Clone()
917917
return clone;
918918
}
919919

920+
/// <summary>
921+
/// Return an boxed instance of the action.
922+
/// </summary>
923+
/// <returns>An boxed clone of the action</returns>
924+
/// <seealso cref="Clone"/>
920925
object ICloneable.Clone()
921926
{
922927
return Clone();

Packages/com.unity.inputsystem/InputSystem/Actions/InputActionAsset.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ public bool Contains(InputAction action)
833833
/// <summary>
834834
/// Enumerate all actions in the asset.
835835
/// </summary>
836-
/// <returns>Enumerate over all actions in the asset.</returns>
836+
/// <returns>An enumerator going over the actions in the asset.</returns>
837837
/// <remarks>
838838
/// Actions will be enumerated one action map in <see cref="actionMaps"/>
839839
/// after the other. The actions from each map will be yielded in turn.
@@ -855,6 +855,11 @@ public IEnumerator<InputAction> GetEnumerator()
855855
}
856856
}
857857

858+
/// <summary>
859+
/// Enumerate all actions in the asset.
860+
/// </summary>
861+
/// <returns>An enumerator going over the actions in the asset.</returns>
862+
/// <seealso cref="GetEnumerator"/>
858863
IEnumerator IEnumerable.GetEnumerator()
859864
{
860865
return GetEnumerator();

Packages/com.unity.inputsystem/InputSystem/Actions/InputActionMap.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,9 @@ public event Action<InputAction.CallbackContext> actionTriggered
313313
remove => m_ActionCallbacks.RemoveCallback(value);
314314
}
315315

316+
/// <summary>
317+
/// Construct an action map with default values.
318+
/// </summary>
316319
public InputActionMap()
317320
{
318321
}
@@ -431,6 +434,7 @@ private int FindActionIndex(Guid id)
431434
/// </summary>
432435
/// <param name="actionNameOrId">Name (as in <see cref="InputAction.name"/>) or ID (as in <see cref="InputAction.id"/>)
433436
/// of the action. Note that matching of names is case-insensitive.</param>
437+
/// <param name="throwIfNotFound">If set to <see langword="true"/> will cause an exception to be thrown when the action was not found.</param>
434438
/// <returns>The action with the given name or ID or <c>null</c> if no matching action
435439
/// was found.</returns>
436440
/// <exception cref="ArgumentNullException"><paramref name="actionNameOrId"/> is <c>null</c>.</exception>
@@ -611,6 +615,11 @@ public InputActionMap Clone()
611615
return clone;
612616
}
613617

618+
/// <summary>
619+
/// Return an boxed instance of the action map.
620+
/// </summary>
621+
/// <returns>An boxed clone of the action map</returns>
622+
/// <seealso cref="Clone"/>
614623
object ICloneable.Clone()
615624
{
616625
return Clone();
@@ -658,6 +667,11 @@ public IEnumerator<InputAction> GetEnumerator()
658667
return actions.GetEnumerator();
659668
}
660669

670+
/// <summary>
671+
/// Enumerate the actions in the map.
672+
/// </summary>
673+
/// <returns>An enumerator going over the actions in the map.</returns>
674+
/// <seealso cref="GetEnumerator"/>
661675
IEnumerator IEnumerable.GetEnumerator()
662676
{
663677
return GetEnumerator();

0 commit comments

Comments
 (0)