ScoreObjectMethodsAppendScoreT(ListIScoreObject, Int32, UInt16, T) Method

Appends a score value for a specified user, identified by an ID, in a ScoreObject from an array of IScoreObjects.

Definition

Namespace: Alteruna.Scoreboard
Assembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4
C#
public static void AppendScore<T>(
	this List<IScoreObject> scoreList,
	int scoreId,
	ushort userID,
	T value
)
where T : struct, new(), IConvertible

Parameters

scoreList  ListIScoreObject
The array of IScoreObjects.
scoreId  Int32
The ID of the ScoreObject to append the score to.
userID  UInt16
The userID for which the score is to be appended.
value  T
The score value to append.

Type Parameters

T
The type of the score value to append.

Usage Note

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).

Exceptions

[!:InvalidTypeException]Thrown if no score of the specified type with the given ID is found.

See Also