(LoadContext context)
| 606 | } |
| 607 | |
| 608 | private void doFormulaSetup(LoadContext context) |
| 609 | { |
| 610 | VariableContext variableContext = context.getVariableContext(); |
| 611 | FormulaManager formulaManager = variableContext.getPCFormulaManager(); |
| 612 | MonitorableVariableStore varStore = new MonitorableVariableStore(); |
| 613 | scopeFacet.set(id, formulaManager.getScopeInstanceFactory()); |
| 614 | variableStoreFacet.set(id, varStore); |
| 615 | solverManagerFacet.set(id, variableContext.generateSolverManager(varStore)); |
| 616 | ChannelUtilities.watchChannel(this, CControl.AGEINPUT, ageSetFacet); |
| 617 | ChannelUtilities.watchChannel(this, CControl.AGEINPUT, FacetLibrary.getFacet(AgeSetKitFacet.class)); |
| 618 | ChannelUtilities.addListenerToChannel(this, CControl.AGEINPUT, x -> { |
| 619 | setDirty(true); |
| 620 | calcActiveBonuses(); |
| 621 | }); |
| 622 | if (isFeatureEnabled(CControl.ALIGNMENTFEATURE)) |
| 623 | { |
| 624 | ChannelUtilities.setDirtyOnChannelChange(this, CControl.ALIGNMENTINPUT); |
| 625 | } |
| 626 | ChannelUtilities.setDirtyOnChannelChange(this, CControl.CHARACTERTYPE); |
| 627 | if (isFeatureEnabled(CControl.DOMAINFEATURE)) |
| 628 | { |
| 629 | deityWatchSetup(context); |
| 630 | } |
| 631 | ChannelUtilities.setDirtyOnChannelChange(this, CControl.GOLDINPUT); |
| 632 | ChannelUtilities.setDirtyOnChannelChange(this, CControl.HAIRSTYLEINPUT); |
| 633 | ChannelUtilities.setDirtyOnChannelChange(this, CControl.HAIRCOLORINPUT); |
| 634 | ChannelUtilities.setDirtyOnChannelChange(this, CControl.HANDEDINPUT); |
| 635 | ChannelUtilities.setDirtyOnChannelChange(this, CControl.HEIGHTINPUT); |
| 636 | ChannelUtilities.setDirtyOnChannelChange(this, CControl.SKINCOLORINPUT); |
| 637 | } |
| 638 | |
| 639 | private void deityWatchSetup(LoadContext context) |
| 640 | { |
no test coverage detected