LANCommander/LANCommander.Server.Data/Models/MultiplayerMode.cs

23 lines
737 B
C#
Raw Permalink Normal View History

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;
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; }
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; }
public Guid? GameId { get; set; }
[JsonIgnore]
[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
}
}