PlayerControllerHelperMapHelperGetMapsInCategoryT Method (Int32, Int32, ListT) |
Gets a list of controller maps for a specific controller assigned to this Player in a specific category.
Namespace:
Rewired
Assembly:
Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public int GetMapsInCategory<T>(
int controllerId,
int categoryId,
List<T> results
)
where T : ControllerMap
Parameters
- controllerId
- Type: SystemInt32
Controller id - Get this from the Controller.id property. For Keyboard and Mouse, just use 0. - categoryId
- Type: SystemInt32
Map Category id. - results
- Type: System.Collections.GenericListT
The list that will be filled with the results.
Type Parameters
- T
- Controller Map type.
Return Value
Type:
Int32Number of Controller Maps found.
Exceptions Exception | Condition |
---|
ArgumentNullException | results is null |
See Also