Games now import using the Game type instead of manifest. The manifest is fine for locally caching the game (though who knows, this could change as well), but for providing complex information like dependent games versioning it just doesn't have enough data. Importing has been changed to provide the "Update Available" title change on games where the main game or mod/expansion has a new version available. Notes now get populated on import, not just install. Reworked population of game menu items to include non-primary actions from mods/expansions. Simplified and fixed certain scripts not running for mods/expansions.
34 lines
1.6 KiB
C#
34 lines
1.6 KiB
C#
using LANCommander.SDK.Enums;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace LANCommander.SDK.Models
|
|
{
|
|
public class Game : BaseModel
|
|
{
|
|
public string Title { get; set; }
|
|
public string SortTitle { get; set; }
|
|
public string DirectoryName { get; set; }
|
|
public string Notes { get; set; }
|
|
public string Description { get; set; }
|
|
public bool Singleplayer { get; set; }
|
|
public DateTime ReleasedOn { get; set; }
|
|
public string InstallDirectory { get; set; }
|
|
public GameType Type { get; set; }
|
|
public Game BaseGame { get; set; }
|
|
public virtual IEnumerable<Action> Actions { get; set; }
|
|
public virtual IEnumerable<Tag> Tags { get; set; }
|
|
public virtual IEnumerable<Genre> Genres { get; set; }
|
|
public virtual IEnumerable<Company> Publishers { get; set; }
|
|
public virtual IEnumerable<Company> Developers { get; set; }
|
|
public virtual IEnumerable<Collection> Collections { get; set; }
|
|
public virtual IEnumerable<MultiplayerMode> MultiplayerModes { get; set; }
|
|
public virtual IEnumerable<Archive> Archives { get; set; }
|
|
public virtual IEnumerable<Script> Scripts { get; set; }
|
|
public virtual IEnumerable<Media> Media { get; set; }
|
|
public virtual IEnumerable<Redistributable> Redistributables { get; set; }
|
|
public virtual IEnumerable<Server> Servers { get; set; }
|
|
public virtual IEnumerable<PlaySession> PlaySessions { get; set; }
|
|
public virtual IEnumerable<Game> DependentGames { get; set; }
|
|
}
|
|
}
|