Struct AchievementPlatformMapping
The per-platform identifiers an achievement is mirrored under. Each platform names its
achievements independently of Serenity's own AchievementId, so a definition
carries one identifier per platform it ships on. A blank identifier means "not mirrored to
that platform".
Assembly: Serenity.Achievements.Domain.dll
Syntax
public readonly struct AchievementPlatformMapping : IEquatable<AchievementPlatformMapping>
Constructors
AchievementPlatformMapping(string, string, string, string, TrophyGrade)
Creates a new AchievementPlatformMapping with the specified identifiers.
Declaration
public AchievementPlatformMapping(string steamApiName, string xboxAchievementId, string epicAchievementId, string psnTrophyId, TrophyGrade trophyGrade)
Parameters
| Type |
Name |
Description |
| string |
steamApiName |
The Steam API name. May be null or empty.
|
| string |
xboxAchievementId |
The Xbox achievement identifier. May be null or empty.
|
| string |
epicAchievementId |
The Epic achievement identifier. May be null or empty.
|
| string |
psnTrophyId |
The PlayStation Network trophy identifier. May be null or empty.
|
| TrophyGrade |
trophyGrade |
The trophy tier used by tiered platforms.
|
Fields
EpicAchievementId
The Epic Online Services achievement identifier. May be null or empty.
Declaration
public readonly string EpicAchievementId
Field Value
PsnTrophyId
The PlayStation Network trophy identifier. May be null or empty.
Declaration
public readonly string PsnTrophyId
Field Value
SteamApiName
The Steam API name (Steamworks "API Name" field). May be null or empty.
Declaration
public readonly string SteamApiName
Field Value
TrophyGrade
The trophy tier used by tiered platforms.
Declaration
public readonly TrophyGrade TrophyGrade
Field Value
XboxAchievementId
The Xbox achievement identifier. May be null or empty.
Declaration
public readonly string XboxAchievementId
Field Value
Properties
Empty
A mapping that names no platform at all — the local-only default.
Declaration
public static AchievementPlatformMapping Empty { get; }
Property Value
HasAnyPlatformIdentifier
Whether this mapping names at least one platform identifier.
Declaration
public bool HasAnyPlatformIdentifier { get; }
Property Value
Methods
Equals(AchievementPlatformMapping)
Declaration
public bool Equals(AchievementPlatformMapping other)
Parameters
Returns
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(AchievementPlatformMapping, AchievementPlatformMapping)
Declaration
public static bool operator ==(AchievementPlatformMapping left, AchievementPlatformMapping right)
Parameters
Returns
operator !=(AchievementPlatformMapping, AchievementPlatformMapping)
Declaration
public static bool operator !=(AchievementPlatformMapping left, AchievementPlatformMapping right)
Parameters
Returns
Implements