public FileAreaLoader(IMudConfiguration config, IFileService <ProtoArea> fileService, IMudLogger log) { this.fileService = fileService ?? throw new ArgumentNullException(nameof(fileService)); this.config = config ?? throw new ArgumentNullException(nameof(config)); this.log = log ?? throw new ArgumentNullException(nameof(log)); }
public WorldHandler(IWorldKeeper worldKeeper, IAreaLoader areaLoader, IMudLogger log) { this.worldKeeper = worldKeeper ?? throw new ArgumentNullException(nameof(worldKeeper)); this.areaLoader = areaLoader ?? throw new ArgumentNullException(nameof(areaLoader)); this.log = log ?? throw new ArgumentNullException(nameof(log)); }