ScoreObjectMethodsSetScoreT(ListIScoreObject, Int32, T) Method
Sets the score for the specified score ID with the given array of values.
Namespace: Alteruna.MultiplayerAssembly: Alteruna (in Alteruna.dll) Version: 2.0.1+a1176e08a0b4a6bfd8fefeddde6163a16d29e5ab
public static void SetScore<T>(
this List<IScoreObject> scoreList,
int scoreId,
T[] array
)
where T : struct, new(), IConvertible
- scoreList ListIScoreObject
- The array of IScoreObjects.
- scoreId Int32
- The ID of the score object.
- array T
- The array of values to set.
- T
- The type of the score to set.
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. |