Class Score
Defines a single scoreboard entry.
Inheritance
System.Object
Score
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: GameJolt.Objects
Assembly: GameJolt.dll
Syntax
public sealed class Score
Properties
| Improve this Doc View SourceExtra
Any extra data associated with the score, for e.g.: Level 2
Declaration
public string Extra { get; }
Property Value
Type | Description |
---|---|
System.String |
GuestName
If this is a guest score, this is the guest's submitted name.
Declaration
public string GuestName { get; }
Property Value
Type | Description |
---|---|
System.String |
IsGuestScore
Whether this score was achieved by a guest or not.
Declaration
public bool IsGuestScore { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
If this is a user score, this is the display name for the user. If this is a guest score, this is the guest's submitted name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Stored
Returns when the score was logged by the user, for e.g.: 1 week ago
Declaration
public string Stored { get; }
Property Value
Type | Description |
---|---|
System.String |
StoredTimestamp
int Returns the timestamp (in seconds) of when the score was logged by the user.
Declaration
public int StoredTimestamp { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Text
The score string, for e.g.: 100 Coins
Declaration
public string Text { get; }
Property Value
Type | Description |
---|---|
System.String |
UserId
If this is a user score, this is the user's ID.
Declaration
public int UserId { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
UserName
If this is a user score, this is the display name for the user.
Declaration
public string UserName { get; }
Property Value
Type | Description |
---|---|
System.String |
Value
The score's numerical sort value, for e.g. 100
Declaration
public int Value { get; }
Property Value
Type | Description |
---|---|
System.Int32 |