mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-04-19 19:14:51 +00:00
30 lines
No EOL
850 B
C#
30 lines
No EOL
850 B
C#
using LBPUnion.ProjectLighthouse.Levels;
|
|
using LBPUnion.ProjectLighthouse.PlayerData;
|
|
using LBPUnion.ProjectLighthouse.Types;
|
|
|
|
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 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,
|
|
GameVersion = slot.GameVersion,
|
|
#if DEBUG
|
|
FirstUploaded = slot.FirstUploaded,
|
|
#endif
|
|
};
|
|
} |