Skip to content

Simulation Read Write Matrix

github-actions[bot] edited this page Nov 12, 2026 · 60 revisions

Simulation read/write matrix

Generated by dk2tools simmatrix (issue 9, WP6); do not edit. Which world state each system reads and writes, in the order SimulationSystems.Default() runs them. It is read from the source with Roslyn: every method a system's entry point can reach, through every implementation of an interface or virtual call.

467 source files, 94 rows, 3117 methods reached, 153 state types.

Legend. W written, R read and not written. Upper case is the core view, which stops at the hubs (TriggerExecutor and WorldSteering.Refresh); lower case is what a row reaches only through a hub, so Rw is read by the row itself and written only through a hub. A step (↳) runs inside its container once per creature or room, in the order shown. Rooms holds the state a room keeps from tick to tick; reading RoomInstance, the room as its tiles describe it, counts as reading Rooms, while rebuilding it is a write of Caches & scratch.

Matrix

# System Tiles Creatures Players Rooms Objects & shots Doors & traps Heroes Level script Navigation Caches & scratch World RNG Commands in Events out
Commands
1 HandSystem W W W W W R W Rw W W R W R W
2 RescuePrioritySystem R R W R
3 SpecialSystem W W W W W r W Rw W W R W R W
RoomLifecycle
4 TileTagSystem W W R R W
5 RoomSellSystem W R W W W R W R W R W
6 RoomBuildSystem W R W W W R R W W R W R W
7 BlueprintSystem W R W R R W R W W R R W
8 AutoFurnitureSystem W W W Rw W R W w W W R W W
9 TempleSacrificeSystem R W W R
10 GraveyardSystem R W W R
11 CasinoLeverSystem W R R W
KeeperActions
12 AllianceSystem W R
13 DoorSystem R R R R W W R R W
14 KeeperSpellSystem W R W R W r R Rw W R R W
15 CreateImpCastSystem W R W R W r Rw W R R W
16 PossessionSystem W W W Rw W R W Rw W W R W R W
ThingPass
17 FootprintSystem R R R W R W
18 CreatureUpdateSystem W W W W W W W Rw W W R W W
19   ↳ CreatureStatusSystem R R R R R W W R W W
20   ↳ ImpTaskSystem.WorkerPrelude W R R R W R W W W R W
21   ↳ CombatSystem W Rw W W W W W Rw W W R W W
22   ↳ CreatureExperienceSystem R W R W
23   ↳ TravelArrivalSystem W W
24   ↳ CreatureEatSystem R R W R W r W R W W R W
25   ↳ CreatureSleepSystem W R W R W r W R W W R W W
26   ↳ PaydaySystem W Rw W W Rw r W Rw W W R W W
27   ↳ CreatureAngerSystem Rw W W Rw W r W Rw W W R W W
28   ↳ CombatSystem.StateHandlers W Rw W Rw W W W Rw W W R W W
29   ↳ CreatureStatusSystem.RecoveryStep W W W Rw Rw R W Rw W W R W W
30   ↳ TremorCreatureSystem W W R W
31   ↳ ReaperSystem W R W
32   ↳ FinaleSystem W W R W W R W W R W
33   ↳ CombatPitSystem R R W R r r W R W W R W W
34   ↳ JackInTheBoxSystem W R R R W r W R W W R W
35   ↳ CasinoJackpotSystem W R W R r r W R W W R W W
36   ↳ HeroSystem W W Rw W W r W Rw W W R W W
37   ↳ CreatureJobSystem W W W W W R W Rw W W R W W
38   ↳ MovementDustSystem R R W R W
39   ↳ CreatureMovementSystem W Rw Rw Rw Rw R W w W W R W W
40   ↳ ImpTaskSystem W R W W W W W R W W R W W
41   ↳ CarriedThingAttachSystem W R W W R
42   ↳ CarriedThingSoundSystem R R R R W
43 CollapseSystem W W W W W r W Rw W W R W W
44 DoorHealthSystem R R W r r W Rw W R W
45 TrainingActionSystem W R R W R W R W
46 ShotSystem W W W W W W W Rw W W R W W
47 CollapseSystem W W W W W r W Rw W W R W W
48 BoulderSystem W W W Rw W W W Rw W W R W W
49 ObjectMovementSystem W R R R W R R Rw W R W W
50 HatcherySystem(lays: false, stepObjects: false) W R W R W R W W
51 TrapSystem W W W R W W W R W W R W
52 CollapseSystem W W W W W r W Rw W W R W W
53 ActionPointTriggerSystem w w w w w r w w w w r w w
54 EffectGeneratorSystem r r r W r R Rw w R W W
55 CreatureRemovalSystem W W W W W r W w W W R W W
56 TrapRemovalSystem R R W W R W
57 DoorRemovalSystem W W W W R W
58 ReaperRemovalSystem W R W W R W
59 CallToArmsSystem R R W R W r W R W W R W R W
60 ChickenSystem R R R R r r W W W R W W
61 FogOfWarSystem W R r R r R Rw W R
62 WalkOverGoldSystem R R R W W R W
Work
63 TileWorkSystem W R W W W W R W R W W
64 BridgeBurnSystem W R W W R W R W W
RoomTicks
65 RoomTickSystem R R W R
66   ↳ StoreSweepSystem W R W R R W W
67   ↳ HeartDefenceSystem R R R R r r W W W R W
68   ↳ HeartFrameStep R W W R W R W
69   ↳ CasinoSystem W R W W W R W R W W
70   ↳ PortalSystem W W W W R R W R W W
71   ↳ HatcheryLayStep W W W R W W
72   ↳ HatedCompanySystem R R W R R W R W
73   ↳ WorkshopTimerSystem R W R R W R W W
74   ↳ RoomBorderFlameSystem W R R W
75   ↳ RoomHealthSystem W R W W W R W R W W
PlayerFrame
76 PlayerTriggerSystem w w w w w r w w w w r w w
77 ManaRemovalSystem W W W W W r W w W W R W W
78 RatSpawnSystem W R R W W R W W
79 ManaSystem W W W R W R W R W W R W
80 ImpSupplySystem W R W R W W R W W
81 RoomBuildWaveSystem W W W W W R W Rw W W R W W
82 RoomSellWaveSystem W R W W W R W R W W
83 ResearchSystem W R W
84 ManufactureDecaySystem W R
Needs
85 ObjectReactionSystem R R W W R W W
86 CreatureHealthSystem W W W W W r W Rw W W R W W
87 PrisonSystem W W W W W r W Rw W W R W W
88 TortureSystem W W W Rw Rw r w Rw W W R W W
89 RescueSystem R R W W R r W R W W R W W
90 PrisonerEatSystem R R W R W r W R W W R W
91 PrisonerWanderSystem R R R R r r W W W R W W
Verdict
92 DungeonHeartSystem(frames: false) W W W W W r W Rw W W R W W
93 NeutralAmbientEffectSystem R R R R W W
94 TremorSystem W W R W W R W R W W W W W

Writers by column

The rows that write each column, in tick order; those after "through a hub" write it only there.

  • Tiles (55 + 3): 1 HandSystem, 3 SpecialSystem, 4 TileTagSystem, 5 RoomSellSystem, 6 RoomBuildSystem, 7 BlueprintSystem, 8 AutoFurnitureSystem, 14 KeeperSpellSystem, 15 CreateImpCastSystem, 16 PossessionSystem, 18 CreatureUpdateSystem, 20 ImpTaskSystem.WorkerPrelude, 21 CombatSystem, 25 CreatureSleepSystem, 26 PaydaySystem, 28 CombatSystem.StateHandlers, 29 CreatureStatusSystem.RecoveryStep, 32 FinaleSystem, 34 JackInTheBoxSystem, 35 CasinoJackpotSystem, 36 HeroSystem, 37 CreatureJobSystem, 39 CreatureMovementSystem, 40 ImpTaskSystem, 41 CarriedThingAttachSystem, 43 CollapseSystem, 45 TrainingActionSystem, 46 ShotSystem, 47 CollapseSystem, 48 BoulderSystem, 49 ObjectMovementSystem, 50 HatcherySystem(lays: false, stepObjects: false), 51 TrapSystem, 52 CollapseSystem, 55 CreatureRemovalSystem, 57 DoorRemovalSystem, 61 FogOfWarSystem, 63 TileWorkSystem, 64 BridgeBurnSystem, 66 StoreSweepSystem, 69 CasinoSystem, 70 PortalSystem, 71 HatcheryLayStep, 75 RoomHealthSystem, 77 ManaRemovalSystem, 78 RatSpawnSystem, 79 ManaSystem, 80 ImpSupplySystem, 81 RoomBuildWaveSystem, 82 RoomSellWaveSystem, 86 CreatureHealthSystem, 87 PrisonSystem, 88 TortureSystem, 92 DungeonHeartSystem(frames: false), 94 TremorSystem; through a hub: 27 CreatureAngerSystem, 53 ActionPointTriggerSystem, 76 PlayerTriggerSystem
  • Creatures (26 + 6): 1 HandSystem, 3 SpecialSystem, 8 AutoFurnitureSystem, 16 PossessionSystem, 18 CreatureUpdateSystem, 27 CreatureAngerSystem, 29 CreatureStatusSystem.RecoveryStep, 36 HeroSystem, 37 CreatureJobSystem, 43 CollapseSystem, 46 ShotSystem, 47 CollapseSystem, 48 BoulderSystem, 51 TrapSystem, 52 CollapseSystem, 55 CreatureRemovalSystem, 58 ReaperRemovalSystem, 70 PortalSystem, 77 ManaRemovalSystem, 79 ManaSystem, 81 RoomBuildWaveSystem, 86 CreatureHealthSystem, 87 PrisonSystem, 88 TortureSystem, 92 DungeonHeartSystem(frames: false), 94 TremorSystem; through a hub: 21 CombatSystem, 26 PaydaySystem, 28 CombatSystem.StateHandlers, 39 CreatureMovementSystem, 53 ActionPointTriggerSystem, 76 PlayerTriggerSystem
  • Players (52 + 4): 1 HandSystem, 3 SpecialSystem, 5 RoomSellSystem, 6 RoomBuildSystem, 7 BlueprintSystem, 8 AutoFurnitureSystem, 12 AllianceSystem, 14 KeeperSpellSystem, 15 CreateImpCastSystem, 16 PossessionSystem, 18 CreatureUpdateSystem, 21 CombatSystem, 24 CreatureEatSystem, 25 CreatureSleepSystem, 26 PaydaySystem, 27 CreatureAngerSystem, 28 CombatSystem.StateHandlers, 29 CreatureStatusSystem.RecoveryStep, 32 FinaleSystem, 33 CombatPitSystem, 35 CasinoJackpotSystem, 37 CreatureJobSystem, 40 ImpTaskSystem, 43 CollapseSystem, 44 DoorHealthSystem, 46 ShotSystem, 47 CollapseSystem, 48 BoulderSystem, 51 TrapSystem, 52 CollapseSystem, 55 CreatureRemovalSystem, 57 DoorRemovalSystem, 59 CallToArmsSystem, 63 TileWorkSystem, 68 HeartFrameStep, 69 CasinoSystem, 70 PortalSystem, 72 HatedCompanySystem, 75 RoomHealthSystem, 77 ManaRemovalSystem, 79 ManaSystem, 80 ImpSupplySystem, 81 RoomBuildWaveSystem, 82 RoomSellWaveSystem, 83 ResearchSystem, 84 ManufactureDecaySystem, 86 CreatureHealthSystem, 87 PrisonSystem, 88 TortureSystem, 89 RescueSystem, 90 PrisonerEatSystem, 92 DungeonHeartSystem(frames: false); through a hub: 36 HeroSystem, 39 CreatureMovementSystem, 53 ActionPointTriggerSystem, 76 PlayerTriggerSystem
  • Rooms (34 + 10): 1 HandSystem, 3 SpecialSystem, 5 RoomSellSystem, 6 RoomBuildSystem, 9 TempleSacrificeSystem, 10 GraveyardSystem, 18 CreatureUpdateSystem, 21 CombatSystem, 26 PaydaySystem, 36 HeroSystem, 37 CreatureJobSystem, 40 ImpTaskSystem, 43 CollapseSystem, 46 ShotSystem, 47 CollapseSystem, 52 CollapseSystem, 55 CreatureRemovalSystem, 63 TileWorkSystem, 64 BridgeBurnSystem, 68 HeartFrameStep, 69 CasinoSystem, 70 PortalSystem, 71 HatcheryLayStep, 73 WorkshopTimerSystem, 74 RoomBorderFlameSystem, 75 RoomHealthSystem, 77 ManaRemovalSystem, 81 RoomBuildWaveSystem, 82 RoomSellWaveSystem, 86 CreatureHealthSystem, 87 PrisonSystem, 89 RescueSystem, 92 DungeonHeartSystem(frames: false), 94 TremorSystem; through a hub: 8 AutoFurnitureSystem, 16 PossessionSystem, 27 CreatureAngerSystem, 28 CombatSystem.StateHandlers, 29 CreatureStatusSystem.RecoveryStep, 39 CreatureMovementSystem, 48 BoulderSystem, 53 ActionPointTriggerSystem, 76 PlayerTriggerSystem, 88 TortureSystem
  • Objects & shots (53 + 6): 1 HandSystem, 3 SpecialSystem, 5 RoomSellSystem, 6 RoomBuildSystem, 8 AutoFurnitureSystem, 11 CasinoLeverSystem, 14 KeeperSpellSystem, 15 CreateImpCastSystem, 16 PossessionSystem, 18 CreatureUpdateSystem, 20 ImpTaskSystem.WorkerPrelude, 21 CombatSystem, 24 CreatureEatSystem, 25 CreatureSleepSystem, 27 CreatureAngerSystem, 28 CombatSystem.StateHandlers, 32 FinaleSystem, 34 JackInTheBoxSystem, 36 HeroSystem, 37 CreatureJobSystem, 40 ImpTaskSystem, 41 CarriedThingAttachSystem, 43 CollapseSystem, 45 TrainingActionSystem, 46 ShotSystem, 47 CollapseSystem, 48 BoulderSystem, 49 ObjectMovementSystem, 50 HatcherySystem(lays: false, stepObjects: false), 51 TrapSystem, 52 CollapseSystem, 54 EffectGeneratorSystem, 55 CreatureRemovalSystem, 59 CallToArmsSystem, 62 WalkOverGoldSystem, 63 TileWorkSystem, 64 BridgeBurnSystem, 66 StoreSweepSystem, 69 CasinoSystem, 71 HatcheryLayStep, 75 RoomHealthSystem, 77 ManaRemovalSystem, 78 RatSpawnSystem, 79 ManaSystem, 80 ImpSupplySystem, 81 RoomBuildWaveSystem, 82 RoomSellWaveSystem, 85 ObjectReactionSystem, 86 CreatureHealthSystem, 87 PrisonSystem, 90 PrisonerEatSystem, 92 DungeonHeartSystem(frames: false), 94 TremorSystem; through a hub: 26 PaydaySystem, 29 CreatureStatusSystem.RecoveryStep, 39 CreatureMovementSystem, 53 ActionPointTriggerSystem, 76 PlayerTriggerSystem, 88 TortureSystem
  • Doors & traps (15): 4 TileTagSystem, 7 BlueprintSystem, 13 DoorSystem, 18 CreatureUpdateSystem, 21 CombatSystem, 28 CombatSystem.StateHandlers, 32 FinaleSystem, 40 ImpTaskSystem, 44 DoorHealthSystem, 46 ShotSystem, 48 BoulderSystem, 51 TrapSystem, 56 TrapRemovalSystem, 57 DoorRemovalSystem, 63 TileWorkSystem
  • Heroes (42 + 3): 1 HandSystem, 3 SpecialSystem, 8 AutoFurnitureSystem, 16 PossessionSystem, 18 CreatureUpdateSystem, 20 ImpTaskSystem.WorkerPrelude, 21 CombatSystem, 24 CreatureEatSystem, 25 CreatureSleepSystem, 26 PaydaySystem, 27 CreatureAngerSystem, 28 CombatSystem.StateHandlers, 29 CreatureStatusSystem.RecoveryStep, 30 TremorCreatureSystem, 33 CombatPitSystem, 34 JackInTheBoxSystem, 35 CasinoJackpotSystem, 36 HeroSystem, 37 CreatureJobSystem, 39 CreatureMovementSystem, 40 ImpTaskSystem, 43 CollapseSystem, 46 ShotSystem, 47 CollapseSystem, 48 BoulderSystem, 51 TrapSystem, 52 CollapseSystem, 55 CreatureRemovalSystem, 58 ReaperRemovalSystem, 59 CallToArmsSystem, 60 ChickenSystem, 67 HeartDefenceSystem, 77 ManaRemovalSystem, 79 ManaSystem, 81 RoomBuildWaveSystem, 86 CreatureHealthSystem, 87 PrisonSystem, 89 RescueSystem, 90 PrisonerEatSystem, 91 PrisonerWanderSystem, 92 DungeonHeartSystem(frames: false), 94 TremorSystem; through a hub: 53 ActionPointTriggerSystem, 76 PlayerTriggerSystem, 88 TortureSystem
  • Level script (0 + 27): none; through a hub: 1 HandSystem, 3 SpecialSystem, 8 AutoFurnitureSystem, 16 PossessionSystem, 18 CreatureUpdateSystem, 21 CombatSystem, 26 PaydaySystem, 27 CreatureAngerSystem, 28 CombatSystem.StateHandlers, 29 CreatureStatusSystem.RecoveryStep, 36 HeroSystem, 37 CreatureJobSystem, 39 CreatureMovementSystem, 43 CollapseSystem, 46 ShotSystem, 47 CollapseSystem, 48 BoulderSystem, 52 CollapseSystem, 53 ActionPointTriggerSystem, 55 CreatureRemovalSystem, 76 PlayerTriggerSystem, 77 ManaRemovalSystem, 81 RoomBuildWaveSystem, 86 CreatureHealthSystem, 87 PrisonSystem, 88 TortureSystem, 92 DungeonHeartSystem(frames: false)
  • Navigation (47 + 8): 1 HandSystem, 3 SpecialSystem, 6 RoomBuildSystem, 7 BlueprintSystem, 8 AutoFurnitureSystem, 16 PossessionSystem, 18 CreatureUpdateSystem, 19 CreatureStatusSystem, 20 ImpTaskSystem.WorkerPrelude, 21 CombatSystem, 23 TravelArrivalSystem, 24 CreatureEatSystem, 25 CreatureSleepSystem, 26 PaydaySystem, 27 CreatureAngerSystem, 28 CombatSystem.StateHandlers, 29 CreatureStatusSystem.RecoveryStep, 32 FinaleSystem, 33 CombatPitSystem, 34 JackInTheBoxSystem, 35 CasinoJackpotSystem, 36 HeroSystem, 37 CreatureJobSystem, 39 CreatureMovementSystem, 40 ImpTaskSystem, 43 CollapseSystem, 46 ShotSystem, 47 CollapseSystem, 48 BoulderSystem, 51 TrapSystem, 52 CollapseSystem, 55 CreatureRemovalSystem, 57 DoorRemovalSystem, 59 CallToArmsSystem, 60 ChickenSystem, 67 HeartDefenceSystem, 77 ManaRemovalSystem, 79 ManaSystem, 81 RoomBuildWaveSystem, 86 CreatureHealthSystem, 87 PrisonSystem, 88 TortureSystem, 89 RescueSystem, 90 PrisonerEatSystem, 91 PrisonerWanderSystem, 92 DungeonHeartSystem(frames: false), 94 TremorSystem; through a hub: 14 KeeperSpellSystem, 15 CreateImpCastSystem, 44 DoorHealthSystem, 49 ObjectMovementSystem, 53 ActionPointTriggerSystem, 54 EffectGeneratorSystem, 61 FogOfWarSystem, 76 PlayerTriggerSystem
  • Caches & scratch (80 + 3): 1 HandSystem, 2 RescuePrioritySystem, 3 SpecialSystem, 5 RoomSellSystem, 6 RoomBuildSystem, 7 BlueprintSystem, 8 AutoFurnitureSystem, 9 TempleSacrificeSystem, 10 GraveyardSystem, 13 DoorSystem, 14 KeeperSpellSystem, 15 CreateImpCastSystem, 16 PossessionSystem, 17 FootprintSystem, 18 CreatureUpdateSystem, 19 CreatureStatusSystem, 20 ImpTaskSystem.WorkerPrelude, 21 CombatSystem, 22 CreatureExperienceSystem, 23 TravelArrivalSystem, 24 CreatureEatSystem, 25 CreatureSleepSystem, 26 PaydaySystem, 27 CreatureAngerSystem, 28 CombatSystem.StateHandlers, 29 CreatureStatusSystem.RecoveryStep, 30 TremorCreatureSystem, 31 ReaperSystem, 32 FinaleSystem, 33 CombatPitSystem, 34 JackInTheBoxSystem, 35 CasinoJackpotSystem, 36 HeroSystem, 37 CreatureJobSystem, 38 MovementDustSystem, 39 CreatureMovementSystem, 40 ImpTaskSystem, 41 CarriedThingAttachSystem, 43 CollapseSystem, 44 DoorHealthSystem, 45 TrainingActionSystem, 46 ShotSystem, 47 CollapseSystem, 48 BoulderSystem, 49 ObjectMovementSystem, 50 HatcherySystem(lays: false, stepObjects: false), 51 TrapSystem, 52 CollapseSystem, 55 CreatureRemovalSystem, 56 TrapRemovalSystem, 58 ReaperRemovalSystem, 59 CallToArmsSystem, 60 ChickenSystem, 61 FogOfWarSystem, 62 WalkOverGoldSystem, 63 TileWorkSystem, 64 BridgeBurnSystem, 65 RoomTickSystem, 67 HeartDefenceSystem, 68 HeartFrameStep, 69 CasinoSystem, 70 PortalSystem, 72 HatedCompanySystem, 73 WorkshopTimerSystem, 75 RoomHealthSystem, 77 ManaRemovalSystem, 78 RatSpawnSystem, 79 ManaSystem, 80 ImpSupplySystem, 81 RoomBuildWaveSystem, 82 RoomSellWaveSystem, 85 ObjectReactionSystem, 86 CreatureHealthSystem, 87 PrisonSystem, 88 TortureSystem, 89 RescueSystem, 90 PrisonerEatSystem, 91 PrisonerWanderSystem, 92 DungeonHeartSystem(frames: false), 94 TremorSystem; through a hub: 53 ActionPointTriggerSystem, 54 EffectGeneratorSystem, 76 PlayerTriggerSystem
  • World (1): 94 TremorSystem
  • RNG (53 + 2): 1 HandSystem, 3 SpecialSystem, 5 RoomSellSystem, 6 RoomBuildSystem, 8 AutoFurnitureSystem, 16 PossessionSystem, 18 CreatureUpdateSystem, 19 CreatureStatusSystem, 21 CombatSystem, 25 CreatureSleepSystem, 26 PaydaySystem, 27 CreatureAngerSystem, 28 CombatSystem.StateHandlers, 29 CreatureStatusSystem.RecoveryStep, 33 CombatPitSystem, 35 CasinoJackpotSystem, 36 HeroSystem, 37 CreatureJobSystem, 39 CreatureMovementSystem, 40 ImpTaskSystem, 43 CollapseSystem, 46 ShotSystem, 47 CollapseSystem, 48 BoulderSystem, 49 ObjectMovementSystem, 50 HatcherySystem(lays: false, stepObjects: false), 52 CollapseSystem, 54 EffectGeneratorSystem, 55 CreatureRemovalSystem, 59 CallToArmsSystem, 60 ChickenSystem, 63 TileWorkSystem, 64 BridgeBurnSystem, 66 StoreSweepSystem, 69 CasinoSystem, 70 PortalSystem, 71 HatcheryLayStep, 73 WorkshopTimerSystem, 75 RoomHealthSystem, 77 ManaRemovalSystem, 78 RatSpawnSystem, 80 ImpSupplySystem, 81 RoomBuildWaveSystem, 82 RoomSellWaveSystem, 85 ObjectReactionSystem, 86 CreatureHealthSystem, 87 PrisonSystem, 88 TortureSystem, 89 RescueSystem, 91 PrisonerWanderSystem, 92 DungeonHeartSystem(frames: false), 93 NeutralAmbientEffectSystem, 94 TremorSystem; through a hub: 53 ActionPointTriggerSystem, 76 PlayerTriggerSystem
  • Commands in (0): none
  • Events out (83 + 2): 1 HandSystem, 3 SpecialSystem, 4 TileTagSystem, 5 RoomSellSystem, 6 RoomBuildSystem, 7 BlueprintSystem, 8 AutoFurnitureSystem, 11 CasinoLeverSystem, 13 DoorSystem, 14 KeeperSpellSystem, 15 CreateImpCastSystem, 16 PossessionSystem, 17 FootprintSystem, 18 CreatureUpdateSystem, 19 CreatureStatusSystem, 20 ImpTaskSystem.WorkerPrelude, 21 CombatSystem, 22 CreatureExperienceSystem, 24 CreatureEatSystem, 25 CreatureSleepSystem, 26 PaydaySystem, 27 CreatureAngerSystem, 28 CombatSystem.StateHandlers, 29 CreatureStatusSystem.RecoveryStep, 30 TremorCreatureSystem, 31 ReaperSystem, 32 FinaleSystem, 33 CombatPitSystem, 34 JackInTheBoxSystem, 35 CasinoJackpotSystem, 36 HeroSystem, 37 CreatureJobSystem, 38 MovementDustSystem, 39 CreatureMovementSystem, 40 ImpTaskSystem, 42 CarriedThingSoundSystem, 43 CollapseSystem, 44 DoorHealthSystem, 45 TrainingActionSystem, 46 ShotSystem, 47 CollapseSystem, 48 BoulderSystem, 49 ObjectMovementSystem, 50 HatcherySystem(lays: false, stepObjects: false), 51 TrapSystem, 52 CollapseSystem, 54 EffectGeneratorSystem, 55 CreatureRemovalSystem, 56 TrapRemovalSystem, 57 DoorRemovalSystem, 58 ReaperRemovalSystem, 59 CallToArmsSystem, 60 ChickenSystem, 62 WalkOverGoldSystem, 63 TileWorkSystem, 64 BridgeBurnSystem, 66 StoreSweepSystem, 67 HeartDefenceSystem, 68 HeartFrameStep, 69 CasinoSystem, 70 PortalSystem, 71 HatcheryLayStep, 72 HatedCompanySystem, 73 WorkshopTimerSystem, 74 RoomBorderFlameSystem, 75 RoomHealthSystem, 77 ManaRemovalSystem, 78 RatSpawnSystem, 79 ManaSystem, 80 ImpSupplySystem, 81 RoomBuildWaveSystem, 82 RoomSellWaveSystem, 83 ResearchSystem, 85 ObjectReactionSystem, 86 CreatureHealthSystem, 87 PrisonSystem, 88 TortureSystem, 89 RescueSystem, 90 PrisonerEatSystem, 91 PrisonerWanderSystem, 92 DungeonHeartSystem(frames: false), 93 NeutralAmbientEffectSystem, 94 TremorSystem; through a hub: 53 ActionPointTriggerSystem, 76 PlayerTriggerSystem

Hubs

Hub Rows that reach it Methods it reaches Rows
TriggerExecutor 27 465 1, 3, 8, 16, 18, 21, 26, 27, 28, 29, 36, 37, 39, 43, 46, 47, 48, 52, 53, 55, 76, 77, 81, 86, 87, 88, 92
WorldSteering.Refresh 41 171 1, 3, 8, 14, 15, 16, 18, 20, 21, 24, 25, 26, 27, 28, 29, 32, 33, 34, 35, 36, 37, 39, 40, 44, 46, 48, 49, 51, 54, 59, 60, 61, 67, 81, 86, 87, 89, 90, 91, 92, 94

Neighbours that share no state

Consecutive systems, or consecutive steps of one container, where neither writes a field the other reads or writes; a container counts with all its steps. As far as data goes, their order is free; the order may still be DK2's.

20 pairs in the core view, 12 when the hubs are counted.

Rows Core Through hubs
10 GraveyardSystem → 11 CasinoLeverSystem free free
11 CasinoLeverSystem → 12 AllianceSystem free free
44 DoorHealthSystem → 45 TrainingActionSystem free
52 CollapseSystem → 53 ActionPointTriggerSystem free
53 ActionPointTriggerSystem → 54 EffectGeneratorSystem free
55 CreatureRemovalSystem → 56 TrapRemovalSystem free
56 TrapRemovalSystem → 57 DoorRemovalSystem free free
57 DoorRemovalSystem → 58 ReaperRemovalSystem free free
61 FogOfWarSystem → 62 WalkOverGoldSystem free
65 RoomTickSystem → 76 PlayerTriggerSystem free
66 StoreSweepSystem → 67 HeartDefenceSystem free
68 HeartFrameStep → 69 CasinoSystem free free
71 HatcheryLayStep → 72 HatedCompanySystem free free
72 HatedCompanySystem → 73 WorkshopTimerSystem free free
73 WorkshopTimerSystem → 74 RoomBorderFlameSystem free free
74 RoomBorderFlameSystem → 75 RoomHealthSystem free free
76 PlayerTriggerSystem → 77 ManaRemovalSystem free
82 RoomSellWaveSystem → 83 ResearchSystem free free
83 ResearchSystem → 84 ManufactureDecaySystem free free
84 ManufactureDecaySystem → 85 ObjectReactionSystem free free

Static state

Static fields count as state only when something writes them; each is shared by every world on its thread ([ThreadStatic]) or in the process, not held per world.

Field Column Written by rows
AnimationTimingRules._countedClock Caches & scratch 1, 19, 28, 32, 35, 36, 37
ApproachRules._scratch Caches & scratch 28
AutoFurnitureRules.s_roomTiles Caches & scratch 3, 8, 18, 21, 40, 63, 81, 94
AutoFurnitureRules.s_slots Caches & scratch 3, 8, 18, 21, 40, 63, 81, 94
CallToArmsRules._routeScratch Caches & scratch 59
FightRules._routeScratch Caches & scratch 48, 51
FollowPathRules._scratch Caches & scratch 39
RepelObstacleRules._scratch Caches & scratch 39
RoomIndex.s_visited Caches & scratch 1, 3, 5, 6, 7, 8, 9, 10, 13, 14, 15, 16, 18, 19, 20, 21, 24, 25, 26, 27, 28, 29, 32, 33, 34, 35, 36, 37, 39, 40, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 59, 60, 61, 63, 64, 65, 67, 68, 70, 72, 75, 76, 77, 78, 80, 81, 82, 85, 86, 87, 88, 89, 90, 91, 92, 94
RoomIndex.s_wanted Caches & scratch 1, 3, 8, 14, 15, 16, 18, 20, 21, 24, 25, 26, 27, 28, 29, 32, 33, 34, 35, 36, 37, 39, 40, 44, 46, 48, 49, 51, 54, 59, 60, 61, 67, 81, 86, 87, 89, 90, 91, 92, 94
SeparationBehaviour._scratch Caches & scratch 39

Fields owned by systems

Written fields of a system class, or of an object only a system holds. They are outside the matrix: scratch, caches or per-tick flags that should not carry state from one system to another.

Field Written by rows
BoulderSystem._boulders 48
BoulderSystem._destroyed 48
BoulderSystem._sight 48
BoulderSystem._sightWorld 48
CallToArmsSystem._creatures 59
CallToArmsSystem._flags 59
CasinoSystem._piles 69
CasinoSystem._runs 69
CasinoSystem._settles 69
CollapseSystem._due 43, 47, 52
CombatSystem._sight 21, 28
CombatSystem._sightWorld 21, 28
CreatureAngerSystem._onTheSecond 27
CreatureMovementSystem._sight 39
CreatureMovementSystem._sightWorld 39
FootprintSystem._corpseTiles 17
GridPathfinder._cameFrom 25, 27, 37
GridPathfinder._cost 25, 27, 37
GridPathfinder._generation 25, 27, 37
GridPathfinder._stamp 25, 27, 37
GridPathfinder._width 25, 27, 37
HandSystem._landing 1
HatedCompanySystem._active 72
HatedCompanySystem._delta 72
HatedCompanySystem._holders 72
HatedCompanySystem._rooms 72
HeartDefenceSystem._dispatches 67
HeartDefenceSystem._gathering 67
HeartDefenceSystem._reporting 67
HeartDefenceSystem._routeScratch 67
HeroSystem._onOriginalTick 36
ImpTaskSystem._route 20, 40
LairSeeker._fallbackRoute 25, 27, 37
LairSeeker._route 25, 27, 37
ProfiledPathfinder.Profiler 40
RoomBorderFlameSystem._births 74
RoomBorderFlameSystem._next 74
RoomHealthSystem._anyGain 75
RoomHealthSystem._checked 75
RoomTickSystem._rooms 50, 65, 92
RoomTickSystem._world 50, 65, 92
ShotSystem._work 46
SteeringMover.CrowdWord 39
SteeringMover.Heading 39
SteeringMover.IsWorker 39
SteeringMover.Profile 39
SteeringMover.SizeClass 39
SteeringMover.TurnRate 39
StoreSweepSystem._pile 66
StoreSweepSystem._sweepTurn 66
TileHeap._key 25, 27, 37
TileHeap._tile 25, 27, 37
TrapSystem._rooms 51
TrapSystem._sight 51
TrapSystem._sightWorld 51
WalkOverGoldSystem._piles 62

What it does not see

  • A write through a collection, span or ref local that a parameter or a call handed in: only the element's own fields are seen, not the field that holds the collection.
  • A mutation through a method that returns a collection; through a get-only property that returns a field (RawGraveyards => _graveyards) it is seen.
  • Field initialisers and primary constructors are not walked.
  • Calls through a delegate are counted (delegateCalls in the JSON) and not followed; raising an event or calling a delegate field writes Events out when the field is an output, and nothing otherwise.
  • A constructor flag such as lays: false is not evaluated; the row reaches every branch.
  • Objects a method creates are not written by it, so filling a new object before storing it is not a write.

The same data with the fields behind each cell is Simulation-Read-Write-Matrix.json.

Clone this wiki locally