ScoreObjectT Class

Represents a score object holding a list of values of type T. This class manages the storage, retrieval, and manipulation of score data.

Definition

Namespace: Alteruna.Scoreboard
Assembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4
C#
public class ScoreObject<T> : IScoreObject
where T : struct, new(), IConvertible
Inheritance
Object    ScoreObjectT
Implements
IScoreObject

Type Parameters

T
The type of the score data.

Constructors

Properties

Key Gets the key associated with the score object.
OnChanged Action invoked when a value in the score object is changed.
Value Gets or sets the list of values. Setting this property invokes OnChanged.

Methods

AppendScore(UInt16, T) Appends a score value for a specified user.
AppendScoreT2(UInt16, T2) Appends a score value for a specified user.
DeserializeValues Deserializes all values using the provided reader.
Get 
SerializeValues Serializes all values using the provided writer.
Set(UInt16, T) 
Set(UInt16, Object) Sets the value for the given ID.
ToString
(Overrides ObjectToString)

See Also