better documentation

This commit is contained in:
Kat 2025-01-09 19:54:13 -08:00
commit 829b067e6e
No known key found for this signature in database
GPG key ID: 11C549BC42DB9B8A
2 changed files with 4 additions and 2 deletions

View file

@ -30,7 +30,8 @@ public class SlotEntity
public string IconHash { get; set; } = ""; public string IconHash { get; set; } = "";
/// <summary> /// <summary>
/// Markup that displays the level name next to its badge /// Markup that displays the level name next to its badge.
/// This can be used everywhere markup works ingame, e.g. news or notifications
/// </summary> /// </summary>
[NotMapped] [NotMapped]
public string InfoXml => $"<slot type=\"{this.Type}\" id=\"{this.SlotId}\" icon=\"{this.IconHash}\">{this.Name}</slot>"; public string InfoXml => $"<slot type=\"{this.Type}\" id=\"{this.SlotId}\" icon=\"{this.IconHash}\">{this.Name}</slot>";

View file

@ -29,7 +29,8 @@ public class UserEntity
public string IconHash { get; set; } public string IconHash { get; set; }
/// <summary> /// <summary>
/// Markup that displays the username next to a polaroid with the user's icon ingame /// Markup that displays the username next to a polaroid with the user's icon.
/// This can be used everywhere markup works ingame, e.g. news or notifications
/// </summary> /// </summary>
[NotMapped] [NotMapped]
public string InfoXml => $"<player icon=\"{this.IconHash}\">{this.Username}</player>"; public string InfoXml => $"<player icon=\"{this.IconHash}\">{this.Username}</player>";