Skip to content

Simulation Read Write Matrix

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

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

Hubs

Hub Rows that reach it Methods it reaches Rows
TriggerExecutor 20 453 1, 8, 16, 18, 19, 21, 27, 28, 35, 36, 38, 44, 45, 49, 71, 72, 76, 81, 82, 87
WorldSteering.Refresh 38 171 1, 8, 14, 15, 16, 19, 20, 21, 24, 25, 26, 27, 28, 31, 32, 33, 34, 35, 36, 38, 39, 42, 44, 45, 46, 48, 50, 54, 55, 56, 62, 76, 82, 84, 85, 86, 87, 89

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
42 DoorHealthSystem → 43 TrainingActionSystem free
48 TrapSystem → 49 ActionPointTriggerSystem free
49 ActionPointTriggerSystem → 50 EffectGeneratorSystem free
50 EffectGeneratorSystem → 51 TrapRemovalSystem free
51 TrapRemovalSystem → 52 DoorRemovalSystem free free
52 DoorRemovalSystem → 53 ReaperRemovalSystem free free
56 FogOfWarSystem → 57 WalkOverGoldSystem free
60 RoomTickSystem → 71 PlayerTriggerSystem free
61 StoreSweepSystem → 62 HeartDefenceSystem free
63 HeartFrameStep → 64 CasinoSystem free free
66 HatcheryLayStep → 67 HatedCompanySystem free free
67 HatedCompanySystem → 68 WorkshopTimerSystem free free
68 WorkshopTimerSystem → 69 RoomBorderFlameSystem free free
69 RoomBorderFlameSystem → 70 RoomHealthSystem free free
71 PlayerTriggerSystem → 72 ManaRemovalSystem free
77 RoomSellWaveSystem → 78 ResearchSystem free free
78 ResearchSystem → 79 ManufactureDecaySystem free free
79 ManufactureDecaySystem → 80 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
ApproachRules._scratch Caches & scratch 28
AutoFurnitureRules.s_roomTiles Caches & scratch 8, 76
AutoFurnitureRules.s_slots Caches & scratch 8, 76
CallToArmsRules._routeScratch Caches & scratch 54
FightRules._routeScratch Caches & scratch 45, 48
FollowPathRules._scratch Caches & scratch 38
RepelObstacleRules._scratch Caches & scratch 38
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, 31, 32, 33, 34, 35, 36, 38, 39, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 54, 55, 56, 58, 59, 60, 62, 63, 65, 67, 70, 71, 72, 73, 75, 76, 77, 80, 81, 82, 83, 84, 85, 86, 87, 89
RoomIndex.s_wanted Caches & scratch 1, 8, 14, 15, 16, 19, 20, 21, 24, 25, 26, 27, 28, 31, 32, 33, 34, 35, 36, 38, 39, 42, 44, 45, 46, 48, 50, 54, 55, 56, 62, 76, 82, 84, 85, 86, 87, 89
SeparationBehaviour._scratch Caches & scratch 38

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 45
BoulderSystem._destroyed 45
BoulderSystem._sight 45
BoulderSystem._sightWorld 45
CallToArmsSystem._creatures 54
CallToArmsSystem._flags 54
CasinoSystem._piles 64
CasinoSystem._runs 64
CasinoSystem._settles 64
CombatSystem._sight 21, 28
CombatSystem._sightWorld 21, 28
CreatureAngerSystem._onTheSecond 27
CreatureMovementSystem._sight 38
CreatureMovementSystem._sightWorld 38
FootprintSystem._corpseTiles 17
GridPathfinder._cameFrom 25, 27, 36
GridPathfinder._cost 25, 27, 36
GridPathfinder._generation 25, 27, 36
GridPathfinder._stamp 25, 27, 36
GridPathfinder._width 25, 27, 36
HatedCompanySystem._active 67
HatedCompanySystem._delta 67
HatedCompanySystem._holders 67
HatedCompanySystem._rooms 67
HeartDefenceSystem._dispatches 62
HeartDefenceSystem._gathering 62
HeartDefenceSystem._reporting 62
HeroSystem._onOriginalTick 35
ImpTaskSystem._route 20, 39
LairSeeker._fallbackRoute 25, 27, 36
LairSeeker._route 25, 27, 36
ProfiledPathfinder.Profiler 39
RoomBorderFlameSystem._births 69
RoomBorderFlameSystem._next 69
RoomHealthSystem._anyGain 70
RoomHealthSystem._checked 70
RoomTickSystem._rooms 47, 60, 87
RoomTickSystem._world 47, 60, 87
ShotSystem._work 44
SteeringMover.CrowdWord 38
SteeringMover.Heading 38
SteeringMover.IsWorker 38
SteeringMover.Profile 38
SteeringMover.SizeClass 38
SteeringMover.TurnRate 38
StoreSweepSystem._pile 61
StoreSweepSystem._sweepTurn 61
TileHeap._key 25, 27, 36
TileHeap._tile 25, 27, 36
TrapSystem._rooms 48
TrapSystem._sight 48
TrapSystem._sightWorld 48
WalkOverGoldSystem._piles 57

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