2024-08-12 00:15:16 -05:00
|
|
|
|
using LANCommander.SDK.Enums;
|
2023-01-08 21:43:01 -06:00
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2023-01-12 01:25:32 -06:00
|
|
|
|
using System.Text.Json.Serialization;
|
2023-01-08 21:43:01 -06:00
|
|
|
|
|
2024-08-04 18:44:33 -05:00
|
|
|
|
namespace LANCommander.Server.Data.Models
|
2023-01-08 21:43:01 -06:00
|
|
|
|
{
|
|
|
|
|
|
[Table("MultiplayerModes")]
|
|
|
|
|
|
public class MultiplayerMode : BaseModel
|
|
|
|
|
|
{
|
|
|
|
|
|
public MultiplayerType Type { get; set; }
|
|
|
|
|
|
public NetworkProtocol NetworkProtocol { get; set; }
|
2023-01-12 20:03:04 -06:00
|
|
|
|
public string? Description { get; set; }
|
2023-01-08 21:43:01 -06:00
|
|
|
|
public int MinPlayers { get; set; }
|
|
|
|
|
|
public int MaxPlayers { get; set; }
|
|
|
|
|
|
public int Spectators { get; set; }
|
2023-01-14 15:07:45 -06:00
|
|
|
|
public Guid? GameId { get; set; }
|
2023-01-12 01:25:32 -06:00
|
|
|
|
[JsonIgnore]
|
2023-01-14 15:07:45 -06:00
|
|
|
|
[ForeignKey(nameof(GameId))]
|
|
|
|
|
|
[InverseProperty("MultiplayerModes")]
|
2024-11-27 01:51:47 -06:00
|
|
|
|
public Game? Game { get; set; }
|
2023-01-08 21:43:01 -06:00
|
|
|
|
}
|
|
|
|
|
|
}
|