Loïc Wisniewski
39ad050dc6
#117 : the crafter and the lab animate only while they are working
...
A factory whose cranes swing over an empty cradle reads as working on
nothing, and a lab sweeping instruments over a vessel it is not studying
reads the same way.
The CLOCK stops rather than the drawing. Every moving element is a NeonPiece
whose position is pushed from that clock, so a frozen clock leaves the
building standing with its cranes parked; stopping apply_animation() instead
would leave them wherever the last frame happened to put them, which is not
the same thing as idle.
The state is read by tree lookup rather than through the bare `GameState`
identifier. These visual scripts are reached through a BuildingDefinition's
visual_scene, which is preloaded while the definition catalog is still
loading - early enough that the autoload is not in the global class table
yet, and a bare reference fails to COMPILE the whole file. That failure also
hung test_building_redraw_cost, because a visual that never built its pieces
left a null crane being dereferenced every frame.
Both animation tests now say what they mean: the redraw-cost test queues an
order first, because its point is that animating is cheap rather than that
it happens unprompted, and the crafter test additionally pins that an idle
crafter really is still.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-23 21:58:59 +02:00
..
Building.gd
#99 (#97a): buildings have health, and can be destroyed
2026-08-23 13:37:40 +02:00
Building.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
Building.tscn
#101 (#97c): waves attack buildings
2026-08-23 13:53:17 +02:00
BuildingActionProvider.gd
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
BuildingActionProvider.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
BuildingDefinition.gd
#99 (#97a): buildings have health, and can be destroyed
2026-08-23 13:37:40 +02:00
BuildingDefinition.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
BuildingDefinitions.gd
#106/#107 (#98a/#98b): the Planning Center
2026-08-23 14:21:52 +02:00
BuildingDefinitions.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
BuildingField.gd
#99 (#97a): buildings have health, and can be destroyed
2026-08-23 13:37:40 +02:00
BuildingField.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
BuildingHitbox.gd
#101 (#97c): waves attack buildings
2026-08-23 13:53:17 +02:00
BuildingHitbox.gd.uid
Add the .uid files Godot generated for the new scripts
2026-08-23 19:23:50 +02:00
BuildingLogisticsProfile.gd
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
BuildingLogisticsProfile.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
BuildingVisualBase.gd
#117 : the crafter and the lab animate only while they are working
2026-08-23 21:58:59 +02:00
BuildingVisualBase.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
CommandBuildingDefinition.tres
#99 (#97a): buildings have health, and can be destroyed
2026-08-23 13:37:40 +02:00
CommandBuildingVisual.gd
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
CommandBuildingVisual.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
CommandBuildingVisual.tscn
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
CrafterBuildingDefinition.tres
#99 (#97a): buildings have health, and can be destroyed
2026-08-23 13:37:40 +02:00
CrafterBuildingVisual.gd
#117 : the crafter and the lab animate only while they are working
2026-08-23 21:58:59 +02:00
CrafterBuildingVisual.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
CrafterBuildingVisual.tscn
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
ExtractorBuildingDefinition.tres
#99 (#97a): buildings have health, and can be destroyed
2026-08-23 13:37:40 +02:00
GasBurnerBuildingDefinition.tres
Garrison laser vessels and gas bombers, on a shared ability seam
2026-08-23 19:23:35 +02:00
GasBurnerBuildingVisual.gd
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
GasBurnerBuildingVisual.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
GasBurnerBuildingVisual.tscn
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
MothershipBuildingDefinition.tres
#99 (#97a): buildings have health, and can be destroyed
2026-08-23 13:37:40 +02:00
MothershipBuildingVisual.gd
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
MothershipBuildingVisual.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
MothershipBuildingVisual.tscn
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
OutpostBuildingDefinition.tres
#102/#103 (#97d/#97e): the outpost, and the garrison you compose for it
2026-08-23 14:02:20 +02:00
OutpostBuildingVisual.gd
#102/#103 (#97d/#97e): the outpost, and the garrison you compose for it
2026-08-23 14:02:20 +02:00
OutpostBuildingVisual.gd.uid
Add the .uid files Godot generated for the new scripts
2026-08-23 19:23:50 +02:00
OutpostBuildingVisual.tscn
#102/#103 (#97d/#97e): the outpost, and the garrison you compose for it
2026-08-23 14:02:20 +02:00
PlanningBuildingDefinition.tres
#106/#107 (#98a/#98b): the Planning Center
2026-08-23 14:21:52 +02:00
PlanningBuildingVisual.gd
#106/#107 (#98a/#98b): the Planning Center
2026-08-23 14:21:52 +02:00
PlanningBuildingVisual.gd.uid
Add the .uid files Godot generated for the new scripts
2026-08-23 19:23:50 +02:00
PlanningBuildingVisual.tscn
#106/#107 (#98a/#98b): the Planning Center
2026-08-23 14:21:52 +02:00
ShipLabBuildingDefinition.tres
#99 (#97a): buildings have health, and can be destroyed
2026-08-23 13:37:40 +02:00
ShipLabBuildingVisual.gd
#117 : the crafter and the lab animate only while they are working
2026-08-23 21:58:59 +02:00
ShipLabBuildingVisual.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
ShipLabBuildingVisual.tscn
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
TransportHubBuildingDefinition.tres
#99 (#97a): buildings have health, and can be destroyed
2026-08-23 13:37:40 +02:00
TransportHubBuildingVisual.gd
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
TransportHubBuildingVisual.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
TransportHubBuildingVisual.tscn
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00