Skip to content

Simulation Read Write Matrix

github-actions[bot] edited this page Nov 28, 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.

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

Hubs

Hub Rows that reach it Methods it reaches Rows
TriggerExecutor 27 538 1, 3, 8, 16, 18, 21, 27, 28, 29, 30, 37, 38, 40, 44, 46, 47, 48, 52, 54, 56, 78, 79, 83, 88, 89, 90, 94
WorldSteering.Refresh 42 177 1, 3, 8, 13, 14, 15, 16, 18, 20, 21, 25, 26, 27, 28, 29, 30, 33, 34, 35, 36, 37, 38, 40, 41, 46, 48, 49, 51, 53, 55, 60, 61, 62, 68, 83, 88, 89, 91, 92, 93, 94, 96

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.

19 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
53 DoorHealthSystem → 54 ActionPointTriggerSystem free
54 ActionPointTriggerSystem → 55 EffectGeneratorSystem free
56 CreatureRemovalSystem → 57 TrapRemovalSystem free
57 TrapRemovalSystem → 58 DoorRemovalSystem free free
58 DoorRemovalSystem → 59 ReaperRemovalSystem free free
62 FogOfWarSystem → 63 WalkOverGoldSystem free
66 RoomTickSystem → 78 PlayerTriggerSystem free
67 StoreSweepSystem → 68 HeartDefenceSystem free
69 HeartFrameStep → 70 CasinoSystem free free
72 HatcheryLayStep → 73 HatedCompanySystem free free
73 HatedCompanySystem → 74 WorkshopTimerSystem free free
75 CombatPitRoomStep → 76 RoomBorderFlameSystem free free
76 RoomBorderFlameSystem → 77 RoomHealthSystem free free
78 PlayerTriggerSystem → 79 ManaRemovalSystem free
84 RoomSellWaveSystem → 85 ResearchSystem free free
85 ResearchSystem → 86 ManufactureDecaySystem free free
86 ManufactureDecaySystem → 87 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.s_countedClock Caches & scratch 1, 19, 29, 33, 36, 37, 38
ApproachRules.s_scratch Caches & scratch 29
AutoFurnitureRules.s_roomTiles Caches & scratch 3, 8, 18, 21, 41, 64, 83, 94, 96
AutoFurnitureRules.s_slots Caches & scratch 3, 8, 18, 21, 41, 64, 83, 94, 96
CallToArmsRules.s_routeScratch Caches & scratch 60
FightRules.s_routeScratch Caches & scratch 48, 51
FollowPathRules.s_scratch Caches & scratch 40
RepelObstacleRules.s_scratch Caches & scratch 40
RoomIndex.s_visited Caches & scratch 1, 3, 5, 6, 7, 8, 9, 10, 13, 14, 15, 16, 18, 19, 20, 21, 25, 26, 27, 28, 29, 30, 33, 34, 35, 36, 37, 38, 40, 41, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 60, 61, 62, 64, 65, 66, 68, 69, 71, 73, 77, 78, 79, 80, 83, 84, 88, 89, 90, 91, 92, 93, 94, 96
RoomIndex.s_wanted Caches & scratch 1, 3, 8, 13, 14, 15, 16, 18, 20, 21, 25, 26, 27, 28, 29, 30, 33, 34, 35, 36, 37, 38, 40, 41, 46, 48, 49, 51, 53, 55, 60, 61, 62, 68, 83, 88, 89, 91, 92, 93, 94, 96
SeparationBehaviour.s_scratch Caches & scratch 40

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 60
CallToArmsSystem._flags 60
CasinoSystem._piles 70
CasinoSystem._runs 70
CasinoSystem._settles 70
CollapseSystem._due 44, 47, 52
CombatSystem._sight 21, 29
CombatSystem._sightWorld 21, 29
CreatureAngerSystem._onTheSecond 28
CreatureMovementSystem._sight 40
CreatureMovementSystem._sightWorld 40
DoorSystem._sight 13
DoorSystem._sightWorld 13
FootprintSystem._corpseTiles 17
GridPathfinder._cameFrom 26, 28, 38
GridPathfinder._cost 26, 28, 38
GridPathfinder._generation 26, 28, 38
GridPathfinder._stamp 26, 28, 38
GridPathfinder._width 26, 28, 38
HandSystem._landing 1
HatedCompanySystem._active 73
HatedCompanySystem._delta 73
HatedCompanySystem._holders 73
HatedCompanySystem._rooms 73
HeartDefenceSystem._dispatches 68
HeartDefenceSystem._gathering 68
HeartDefenceSystem._reporting 68
HeartDefenceSystem.s_routeScratch 68
HeroSystem._onOriginalTick 37
ImpTaskSystem._route 20, 41
LairSeeker._fallbackRoute 26, 28, 38
LairSeeker._route 26, 28, 38
ProfiledPathfinder.Profiler 41
RoomBorderFlameSystem._births 76
RoomBorderFlameSystem._next 76
RoomHealthSystem._anyGain 77
RoomHealthSystem._checked 77
RoomTickSystem._rooms 50, 66, 94
RoomTickSystem._world 50, 66, 94
ShotSystem._work 46
SteeringMover.CrowdWord 40
SteeringMover.Heading 40
SteeringMover.IsWorker 40
SteeringMover.Profile 40
SteeringMover.SizeClass 40
SteeringMover.TurnRate 40
StoreSweepSystem._pile 67
StoreSweepSystem._sweepTurn 67
TileHeap._key 26, 28, 38
TileHeap._tile 26, 28, 38
TrapSystem._rooms 51
TrapSystem._sight 51
TrapSystem._sightWorld 51
WalkOverGoldSystem._chickens 63
WalkOverGoldSystem._piles 63

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