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();
        }
Exemplo n.º 2
0
 public FakeGridCommandHandler(IBlueprintDataContext dataContext) : base(dataContext)
 {
 }
 public GetGridMassQueryHandler(IDefinitionsRepository definitions, IBlueprintDataContext dataContext) : base(definitions, dataContext)
 {
 }
Exemplo n.º 4
0
 public RemoveAllBlockDamageCommandHandler(IBlueprintDataContext dataContext) : base(dataContext)
 {
 }
Exemplo n.º 5
0
 public RemoveDeformationsCommandHandler(IBlueprintDataContext dataContext) : base(dataContext)
 {
 }
Exemplo n.º 6
0
 public CompleteAllBlocksCommandHandler(IBlueprintDataContext dataContext) : base(dataContext)
 {
 }
Exemplo n.º 7
0
        // TODO: Implement support for cross-cutting concerns, e.g. logging

        public CommandHandlerBase(IBlueprintDataContext dataContext)
        {
            _dataContext = dataContext;
        }
 public GridCommandHandlerBase(IBlueprintDataContext dataContext) : base(dataContext)
 {
 }
Exemplo n.º 9
0
 public QueryHandlerBase(IDefinitionsRepository definitions, IBlueprintDataContext dataContext)
 {
     _dataContext = dataContext;
     _definitions = definitions;
 }