public StartupBuilder(RealVirtualityGame game, ModListBuilder builder) { if (game == null) { throw new ArgumentNullException(nameof(game)); } if (builder == null) { throw new ArgumentNullException(nameof(builder)); } _supportsMods = true; _supportsMissions = game.SupportsMissions(); _supportsServers = game.SupportsServers(); _modListBuilder = builder; }
public StartupBuilder(RealVirtualityGame game) { if (game == null) { throw new ArgumentNullException(nameof(game)); } _supportsMods = game.SupportsMods(); _supportsMissions = game.SupportsMissions(); _supportsServers = game.SupportsServers(); if (_supportsMods) { _modListBuilder = new ModListBuilder(); } }