LANCommander/LANCommander.Launcher.Data/Models/MultiplayerMode.cs
Pat Hartl 9ba9887eb1 Rename project files, namespaces, artifacts
Client has been renamed to launcher, and thus namespaces and artifact names had to change. The server project has also had some artifacts renamed in order to create a more clear separation of builds. This will break auto-updates before v0.9.0.
2024-08-04 17:53:19 -05:00

23 lines
787 B
C#

using LANCommander.Launcher.Data.Enums;
using LANCommander.SDK.Enums;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace LANCommander.Launcher.Data.Models
{
[Table("MultiplayerModes")]
public class MultiplayerMode : BaseModel
{
public MultiplayerType Type { get; set; }
public NetworkProtocol NetworkProtocol { get; set; }
public string? Description { get; set; }
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")]
public virtual Game? Game { get; set; }
}
}