mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-28 03:32:27 +00:00
* Start of reorganization and cleanup * Remove duplicate title id * Refactor types * Fix Release building * Move classes in /Types to a Types namespace * Fix compilation error (RoomVisualizerPage strikes again) * Fix bugs created from auto merge * Fix auto-merge compilation error * Changes from review/fix failed merge
31 lines
No EOL
917 B
C#
31 lines
No EOL
917 B
C#
using LBPUnion.ProjectLighthouse.Types.Entities.Level;
|
|
using LBPUnion.ProjectLighthouse.Types.Users;
|
|
|
|
namespace LBPUnion.ProjectLighthouse.Servers.API.Responses;
|
|
|
|
public struct MinimalSlot
|
|
{
|
|
public int SlotId { get; set; }
|
|
public string Name { get; set; }
|
|
public string IconHash { get; set; }
|
|
public bool TeamPick { get; set; }
|
|
public bool IsAdventure { get; set; }
|
|
public GameVersion GameVersion { get; set; }
|
|
#if DEBUG
|
|
public long FirstUploaded { get; set; }
|
|
#endif
|
|
|
|
public static MinimalSlot FromSlot(Slot slot)
|
|
=> new()
|
|
{
|
|
SlotId = slot.SlotId,
|
|
Name = slot.Name,
|
|
IconHash = slot.IconHash,
|
|
TeamPick = slot.TeamPick,
|
|
IsAdventure = slot.IsAdventurePlanet,
|
|
GameVersion = slot.GameVersion,
|
|
#if DEBUG
|
|
FirstUploaded = slot.FirstUploaded,
|
|
#endif
|
|
};
|
|
} |