ScoreObjectMethodsGetScoreT(ListIScoreObject, Int32, UInt16) Method
Retrieves the score of type T for the given score ID and userID.
Namespace: Alteruna.ScoreboardAssembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4
public static T GetScore<T>(
this List<IScoreObject> scoreList,
int scoreId,
ushort userID
)
where T : struct, new(), IConvertible
- scoreList ListIScoreObject
- The array of IScoreObjects to search.
- scoreId Int32
- The ID of the score object.
- userID UInt16
- The userID for which the score is to be retrieved.
- T
- The type of the score to retrieve.
TThe score of type T.In Visual Basic and C#, you can call this method as an instance method on any object of type
ListIScoreObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
[!:InvalidTypeException] | Thrown if no score of the specified type with the given ID is found. |