Skip to content

Simulation Read Write Matrix

github-actions[bot] edited this page Nov 11, 2026 · 65 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.

465 source files, 93 rows, 3073 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 R 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 Rw 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 R W W R r W R 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 Rw 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 TrapRemovalSystem R R W W R W
56 DoorRemovalSystem W W W W R W
57 ReaperRemovalSystem W R W W R W
58 CallToArmsSystem R R W R W r W R W W R W R W
59 ChickenSystem R R R R r r W W W R W W
60 FogOfWarSystem W R r R r R Rw W R
61 WalkOverGoldSystem R R R W W R W
Work
62 TileWorkSystem W R W W W W R W R W W
63 BridgeBurnSystem W R W W R W R W W
RoomTicks
64 RoomTickSystem R R W R
65   ↳ StoreSweepSystem W R W R R W W
66   ↳ HeartDefenceSystem R R R R r r W W W R W
67   ↳ HeartFrameStep R W W R W R W
68   ↳ CasinoSystem W R W W W R W R W W
69   ↳ PortalSystem W W W W R R W R W W
70   ↳ HatcheryLayStep W W W R W W
71   ↳ HatedCompanySystem R R W R R W R W
72   ↳ WorkshopTimerSystem R W R R W R W W
73   ↳ RoomBorderFlameSystem W R R W
74   ↳ RoomHealthSystem W R W W W R W R W W
PlayerFrame
75 PlayerTriggerSystem w w w w w r w w w w r w w
76 ManaRemovalSystem W W W W W r W w W W R W W
77 RatSpawnSystem W R R W W R W W
78 ManaSystem W W W R W R W R W W R W
79 ImpSupplySystem W R W R W W R W W
80 RoomBuildWaveSystem W W W W W R W Rw W W R W W
81 RoomSellWaveSystem W R W W W R W R W W
82 ResearchSystem W R W
83 ManufactureDecaySystem W R
Needs
84 ObjectReactionSystem R R W W R W W
85 CreatureHealthSystem W W W W W r W Rw W W R W W
86 PrisonSystem W W W W W r W Rw W W R W W
87 TortureSystem W W W R R R W W R W W
88 RescueSystem R R W W R r W R W W R W W
89 PrisonerEatSystem R R W R W r W R W W R W
90 PrisonerWanderSystem R R R R r r W W W R W W
Verdict
91 DungeonHeartSystem(frames: false) W W W W W r W Rw W W R W W
92 NeutralAmbientEffectSystem R R R R W W
93 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 (54 + 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, 56 DoorRemovalSystem, 60 FogOfWarSystem, 62 TileWorkSystem, 63 BridgeBurnSystem, 65 StoreSweepSystem, 68 CasinoSystem, 69 PortalSystem, 70 HatcheryLayStep, 74 RoomHealthSystem, 76 ManaRemovalSystem, 77 RatSpawnSystem, 78 ManaSystem, 79 ImpSupplySystem, 80 RoomBuildWaveSystem, 81 RoomSellWaveSystem, 85 CreatureHealthSystem, 86 PrisonSystem, 87 TortureSystem, 91 DungeonHeartSystem(frames: false), 93 TremorSystem; through a hub: 27 CreatureAngerSystem, 53 ActionPointTriggerSystem, 75 PlayerTriggerSystem
  • Creatures (24 + 6): 1 HandSystem, 3 SpecialSystem, 8 AutoFurnitureSystem, 16 PossessionSystem, 27 CreatureAngerSystem, 29 CreatureStatusSystem.RecoveryStep, 36 HeroSystem, 37 CreatureJobSystem, 43 CollapseSystem, 46 ShotSystem, 47 CollapseSystem, 48 BoulderSystem, 51 TrapSystem, 52 CollapseSystem, 57 ReaperRemovalSystem, 69 PortalSystem, 76 ManaRemovalSystem, 78 ManaSystem, 80 RoomBuildWaveSystem, 85 CreatureHealthSystem, 86 PrisonSystem, 87 TortureSystem, 91 DungeonHeartSystem(frames: false), 93 TremorSystem; through a hub: 18 CreatureUpdateSystem, 21 CombatSystem, 28 CombatSystem.StateHandlers, 39 CreatureMovementSystem, 53 ActionPointTriggerSystem, 75 PlayerTriggerSystem
  • Players (51 + 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, 56 DoorRemovalSystem, 58 CallToArmsSystem, 62 TileWorkSystem, 67 HeartFrameStep, 68 CasinoSystem, 69 PortalSystem, 71 HatedCompanySystem, 74 RoomHealthSystem, 76 ManaRemovalSystem, 78 ManaSystem, 79 ImpSupplySystem, 80 RoomBuildWaveSystem, 81 RoomSellWaveSystem, 82 ResearchSystem, 83 ManufactureDecaySystem, 85 CreatureHealthSystem, 86 PrisonSystem, 87 TortureSystem, 88 RescueSystem, 89 PrisonerEatSystem, 91 DungeonHeartSystem(frames: false); through a hub: 36 HeroSystem, 39 CreatureMovementSystem, 53 ActionPointTriggerSystem, 75 PlayerTriggerSystem
  • Rooms (31 + 10): 1 HandSystem, 5 RoomSellSystem, 6 RoomBuildSystem, 9 TempleSacrificeSystem, 10 GraveyardSystem, 18 CreatureUpdateSystem, 21 CombatSystem, 26 PaydaySystem, 36 HeroSystem, 37 CreatureJobSystem, 40 ImpTaskSystem, 43 CollapseSystem, 47 CollapseSystem, 52 CollapseSystem, 62 TileWorkSystem, 63 BridgeBurnSystem, 67 HeartFrameStep, 68 CasinoSystem, 69 PortalSystem, 70 HatcheryLayStep, 72 WorkshopTimerSystem, 73 RoomBorderFlameSystem, 74 RoomHealthSystem, 76 ManaRemovalSystem, 80 RoomBuildWaveSystem, 81 RoomSellWaveSystem, 85 CreatureHealthSystem, 86 PrisonSystem, 88 RescueSystem, 91 DungeonHeartSystem(frames: false), 93 TremorSystem; through a hub: 8 AutoFurnitureSystem, 16 PossessionSystem, 27 CreatureAngerSystem, 28 CombatSystem.StateHandlers, 29 CreatureStatusSystem.RecoveryStep, 39 CreatureMovementSystem, 46 ShotSystem, 48 BoulderSystem, 53 ActionPointTriggerSystem, 75 PlayerTriggerSystem
  • Objects & shots (52 + 4): 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, 58 CallToArmsSystem, 61 WalkOverGoldSystem, 62 TileWorkSystem, 63 BridgeBurnSystem, 65 StoreSweepSystem, 68 CasinoSystem, 70 HatcheryLayStep, 74 RoomHealthSystem, 76 ManaRemovalSystem, 77 RatSpawnSystem, 78 ManaSystem, 79 ImpSupplySystem, 80 RoomBuildWaveSystem, 81 RoomSellWaveSystem, 84 ObjectReactionSystem, 85 CreatureHealthSystem, 86 PrisonSystem, 89 PrisonerEatSystem, 91 DungeonHeartSystem(frames: false), 93 TremorSystem; through a hub: 29 CreatureStatusSystem.RecoveryStep, 39 CreatureMovementSystem, 53 ActionPointTriggerSystem, 75 PlayerTriggerSystem
  • 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, 55 TrapRemovalSystem, 56 DoorRemovalSystem, 62 TileWorkSystem
  • Heroes (39 + 3): 1 HandSystem, 8 AutoFurnitureSystem, 16 PossessionSystem, 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, 57 ReaperRemovalSystem, 58 CallToArmsSystem, 59 ChickenSystem, 66 HeartDefenceSystem, 76 ManaRemovalSystem, 78 ManaSystem, 80 RoomBuildWaveSystem, 85 CreatureHealthSystem, 86 PrisonSystem, 88 RescueSystem, 89 PrisonerEatSystem, 90 PrisonerWanderSystem, 91 DungeonHeartSystem(frames: false), 93 TremorSystem; through a hub: 18 CreatureUpdateSystem, 53 ActionPointTriggerSystem, 75 PlayerTriggerSystem
  • Level script (0 + 23): none; through a hub: 1 HandSystem, 8 AutoFurnitureSystem, 16 PossessionSystem, 18 CreatureUpdateSystem, 21 CombatSystem, 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, 75 PlayerTriggerSystem, 76 ManaRemovalSystem, 80 RoomBuildWaveSystem, 85 CreatureHealthSystem, 86 PrisonSystem, 91 DungeonHeartSystem(frames: false)
  • Navigation (44 + 9): 1 HandSystem, 6 RoomBuildSystem, 7 BlueprintSystem, 8 AutoFurnitureSystem, 16 PossessionSystem, 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, 56 DoorRemovalSystem, 58 CallToArmsSystem, 59 ChickenSystem, 66 HeartDefenceSystem, 76 ManaRemovalSystem, 78 ManaSystem, 80 RoomBuildWaveSystem, 85 CreatureHealthSystem, 86 PrisonSystem, 87 TortureSystem, 88 RescueSystem, 89 PrisonerEatSystem, 90 PrisonerWanderSystem, 91 DungeonHeartSystem(frames: false), 93 TremorSystem; through a hub: 14 KeeperSpellSystem, 15 CreateImpCastSystem, 18 CreatureUpdateSystem, 44 DoorHealthSystem, 49 ObjectMovementSystem, 53 ActionPointTriggerSystem, 54 EffectGeneratorSystem, 60 FogOfWarSystem, 75 PlayerTriggerSystem
  • Caches & scratch (79 + 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 TrapRemovalSystem, 57 ReaperRemovalSystem, 58 CallToArmsSystem, 59 ChickenSystem, 60 FogOfWarSystem, 61 WalkOverGoldSystem, 62 TileWorkSystem, 63 BridgeBurnSystem, 64 RoomTickSystem, 66 HeartDefenceSystem, 67 HeartFrameStep, 68 CasinoSystem, 69 PortalSystem, 71 HatedCompanySystem, 72 WorkshopTimerSystem, 74 RoomHealthSystem, 76 ManaRemovalSystem, 77 RatSpawnSystem, 78 ManaSystem, 79 ImpSupplySystem, 80 RoomBuildWaveSystem, 81 RoomSellWaveSystem, 84 ObjectReactionSystem, 85 CreatureHealthSystem, 86 PrisonSystem, 87 TortureSystem, 88 RescueSystem, 89 PrisonerEatSystem, 90 PrisonerWanderSystem, 91 DungeonHeartSystem(frames: false), 93 TremorSystem; through a hub: 53 ActionPointTriggerSystem, 54 EffectGeneratorSystem, 75 PlayerTriggerSystem
  • World (1): 93 TremorSystem
  • RNG (52 + 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, 58 CallToArmsSystem, 59 ChickenSystem, 62 TileWorkSystem, 63 BridgeBurnSystem, 65 StoreSweepSystem, 68 CasinoSystem, 69 PortalSystem, 70 HatcheryLayStep, 72 WorkshopTimerSystem, 74 RoomHealthSystem, 76 ManaRemovalSystem, 77 RatSpawnSystem, 79 ImpSupplySystem, 80 RoomBuildWaveSystem, 81 RoomSellWaveSystem, 84 ObjectReactionSystem, 85 CreatureHealthSystem, 86 PrisonSystem, 87 TortureSystem, 88 RescueSystem, 90 PrisonerWanderSystem, 91 DungeonHeartSystem(frames: false), 92 NeutralAmbientEffectSystem, 93 TremorSystem; through a hub: 53 ActionPointTriggerSystem, 75 PlayerTriggerSystem
  • Commands in (0): none
  • Events out (82 + 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 TrapRemovalSystem, 56 DoorRemovalSystem, 57 ReaperRemovalSystem, 58 CallToArmsSystem, 59 ChickenSystem, 61 WalkOverGoldSystem, 62 TileWorkSystem, 63 BridgeBurnSystem, 65 StoreSweepSystem, 66 HeartDefenceSystem, 67 HeartFrameStep, 68 CasinoSystem, 69 PortalSystem, 70 HatcheryLayStep, 71 HatedCompanySystem, 72 WorkshopTimerSystem, 73 RoomBorderFlameSystem, 74 RoomHealthSystem, 76 ManaRemovalSystem, 77 RatSpawnSystem, 78 ManaSystem, 79 ImpSupplySystem, 80 RoomBuildWaveSystem, 81 RoomSellWaveSystem, 82 ResearchSystem, 84 ObjectReactionSystem, 85 CreatureHealthSystem, 86 PrisonSystem, 87 TortureSystem, 88 RescueSystem, 89 PrisonerEatSystem, 90 PrisonerWanderSystem, 91 DungeonHeartSystem(frames: false), 92 NeutralAmbientEffectSystem, 93 TremorSystem; through a hub: 53 ActionPointTriggerSystem, 75 PlayerTriggerSystem

Hubs

Hub Rows that reach it Methods it reaches Rows
TriggerExecutor 23 464 1, 8, 16, 18, 21, 27, 28, 29, 36, 37, 39, 43, 46, 47, 48, 52, 53, 75, 76, 80, 85, 86, 91
WorldSteering.Refresh 38 171 1, 8, 14, 15, 16, 20, 21, 24, 25, 26, 27, 28, 29, 32, 33, 34, 35, 36, 37, 39, 40, 44, 46, 48, 49, 51, 54, 58, 59, 60, 66, 80, 86, 88, 89, 90, 91, 93

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.

21 pairs in the core view, 13 when the hubs are counted.

Rows Core Through hubs
3 SpecialSystem → 4 TileTagSystem free free
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
54 EffectGeneratorSystem → 55 TrapRemovalSystem free
55 TrapRemovalSystem → 56 DoorRemovalSystem free free
56 DoorRemovalSystem → 57 ReaperRemovalSystem free free
60 FogOfWarSystem → 61 WalkOverGoldSystem free
64 RoomTickSystem → 75 PlayerTriggerSystem free
65 StoreSweepSystem → 66 HeartDefenceSystem free
67 HeartFrameStep → 68 CasinoSystem free free
70 HatcheryLayStep → 71 HatedCompanySystem free free
71 HatedCompanySystem → 72 WorkshopTimerSystem free free
72 WorkshopTimerSystem → 73 RoomBorderFlameSystem free free
73 RoomBorderFlameSystem → 74 RoomHealthSystem free free
75 PlayerTriggerSystem → 76 ManaRemovalSystem free
81 RoomSellWaveSystem → 82 ResearchSystem free free
82 ResearchSystem → 83 ManufactureDecaySystem free free
83 ManufactureDecaySystem → 84 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 8, 18, 21, 40, 62, 80, 93
AutoFurnitureRules.s_slots Caches & scratch 8, 18, 21, 40, 62, 80, 93
CallToArmsRules._routeScratch Caches & scratch 58
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, 58, 59, 60, 62, 63, 64, 66, 67, 69, 71, 74, 75, 76, 77, 79, 80, 81, 84, 85, 86, 87, 88, 89, 90, 91, 93
RoomIndex.s_wanted Caches & scratch 1, 8, 14, 15, 16, 20, 21, 24, 25, 26, 27, 28, 29, 32, 33, 34, 35, 36, 37, 39, 40, 44, 46, 48, 49, 51, 54, 58, 59, 60, 66, 80, 86, 88, 89, 90, 91, 93
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 58
CallToArmsSystem._flags 58
CasinoSystem._piles 68
CasinoSystem._runs 68
CasinoSystem._settles 68
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 71
HatedCompanySystem._delta 71
HatedCompanySystem._holders 71
HatedCompanySystem._rooms 71
HeartDefenceSystem._dispatches 66
HeartDefenceSystem._gathering 66
HeartDefenceSystem._reporting 66
HeartDefenceSystem._routeScratch 66
HeroSystem._onOriginalTick 36
ImpTaskSystem._route 20, 40
LairSeeker._fallbackRoute 25, 27, 37
LairSeeker._route 25, 27, 37
ProfiledPathfinder.Profiler 40
RoomBorderFlameSystem._births 73
RoomBorderFlameSystem._next 73
RoomHealthSystem._anyGain 74
RoomHealthSystem._checked 74
RoomTickSystem._rooms 50, 64, 91
RoomTickSystem._world 50, 64, 91
ShotSystem._work 46
SteeringMover.CrowdWord 39
SteeringMover.Heading 39
SteeringMover.IsWorker 39
SteeringMover.Profile 39
SteeringMover.SizeClass 39
SteeringMover.TurnRate 39
StoreSweepSystem._pile 65
StoreSweepSystem._sweepTurn 65
TileHeap._key 25, 27, 37
TileHeap._tile 25, 27, 37
TrapSystem._rooms 51
TrapSystem._sight 51
TrapSystem._sightWorld 51
WalkOverGoldSystem._piles 61

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