Beispiel #1
0
 public GameProfile(
     AggregateId id,
     AggregateId gameId,
     string name,
     string proxyDirectoryPath,
     string logsDirectoryPath,
     PluginType pluginType,
     Direct3D11Settings direct3D11Settings)
     : base(id)
 {
     GameId             = gameId;
     Name               = name;
     ProxyDirectoryPath = proxyDirectoryPath;
     LogsDirectoryPath  = logsDirectoryPath;
     PluginType         = pluginType;
     Direct3D11Settings = direct3D11Settings;
 }
Beispiel #2
0
        public GameProfile AddGameProfile(
            AggregateId gameProfileId,
            string name,
            string proxyDirectoryPath,
            string logsDirectoryPath,
            PluginType pluginType,
            Direct3D11Settings direct3D11Settings)
        {
            var profile = new GameProfile(
                gameProfileId,
                Id,
                name,
                proxyDirectoryPath,
                logsDirectoryPath,
                pluginType,
                direct3D11Settings);

            _profiles.Remove(entity => entity.Id == gameProfileId);
            _profiles.Add(profile);
            ProfileId = profile.Id;

            return(profile.Clone());
        }