-
Enhancement
-
Resolution: Done
-
Critical
-
None
-
None
OLD:
@PEntity class MyEntity { @Variable(listeners = FireToLavaAndSmoke, FireAndWaterToSteam) Fire fire; // genuine variable @Variable(listeners = FireAndWaterToSteam) Water water; // genuine variable Lava lava; // shadow variable depends on fire Smoke smoke; // shadow variable depends on fire Steam steam; // shadow variable depends on fire and water }
NEW:
@PEntity class MyEntity { @Variable Fire fire; // genuine variable @Variable Water water; // genuine variable @CustomShadowVariable(source = {fire}, listener = FireToLavaAndSmoke) // Workaround: also affects smoke Lava lava; // shadow variable depends on fire @CustomShadowVariable(source = {fire}, listener = FireToLavaAndSmoke) // Workaround: make this a dummy Smoke smoke; // shadow variable depends on fire @CustomShadowVariable(source = {fire, water}, listener = FireAndWaterToSteam) Steam steam; // shadow variable depends on fire and water }
ISSUE: listener FireToLavaAndSmoke of lava and smoke need to the same instance!
- is duplicated by
-
PLANNER-319 Design problems with annotation CustomShadowVariable in case of multiple shadow variable
- Resolved
- is related to
-
PLANNER-252 VariableListeners for shadow variables that are triggered on other shadow variables should be triggered predictably in a smart order
- Resolved