ScoreObjectMethodsSetScoreT(ListIScoreObject, String, T, UInt16) Method
Sets the individual score for the specified key and userID.
Namespace: Alteruna.ScoreboardAssembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4
public static void SetScore<T>(
this List<IScoreObject> scoreList,
string key,
T value,
ushort userID
)
where T : struct, new(), IConvertible
- scoreList ListIScoreObject
- The array of IScoreObjects.
- key String
- The key of the score object.
- value T
- The value to set for the specified userID.
- userID UInt16
- The userID for which the score is to be 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).