internal BlueprintService(IDefinitionsRepository definitionsRepository, ILoadableResource <XDocument> blueprintResource) { _definitionsRepository = definitionsRepository; try { Blueprint = blueprintResource.Load(); _blueprintDataContext = new BlueprintDataContext(XElement.Parse(Blueprint.ToString())); } catch (Exception e) { throw new Exception("Blueprint cannot be loaded. This is probably because the game changed, and this app became incompatible with the blueprint files.", e); } SetBlueprintInfo(); }
public FakeGridCommandHandler(IBlueprintDataContext dataContext) : base(dataContext) { }
public GetGridMassQueryHandler(IDefinitionsRepository definitions, IBlueprintDataContext dataContext) : base(definitions, dataContext) { }
public RemoveAllBlockDamageCommandHandler(IBlueprintDataContext dataContext) : base(dataContext) { }
public RemoveDeformationsCommandHandler(IBlueprintDataContext dataContext) : base(dataContext) { }
public CompleteAllBlocksCommandHandler(IBlueprintDataContext dataContext) : base(dataContext) { }
// TODO: Implement support for cross-cutting concerns, e.g. logging public CommandHandlerBase(IBlueprintDataContext dataContext) { _dataContext = dataContext; }
public GridCommandHandlerBase(IBlueprintDataContext dataContext) : base(dataContext) { }
public QueryHandlerBase(IDefinitionsRepository definitions, IBlueprintDataContext dataContext) { _dataContext = dataContext; _definitions = definitions; }