LCOV - code coverage report
Current view: top level - source/simulation2 - TypeList.h (source / functions) Hit Total Coverage
Test: 0 A.D. test coverage report Lines: 136 136 100.0 %
Date: 2026-12-03 01:19:39 Functions: 0 0 -

          Line data    Source code
       1             : /* Copyright (C) 2025 Wildfire Games.
       2             :  * This file is part of 0 A.D.
       3             :  *
       4             :  * 0 A.D. is free software: you can redistribute it and/or modify
       5             :  * it under the terms of the GNU General Public License as published by
       6             :  * the Free Software Foundation, either version 2 of the License, or
       7             :  * (at your option) any later version.
       8             :  *
       9             :  * 0 A.D. is distributed in the hope that it will be useful,
      10             :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      11             :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      12             :  * GNU General Public License for more details.
      13             :  *
      14             :  * You should have received a copy of the GNU General Public License
      15             :  * along with 0 A.D.  If not, see <http://www.gnu.org/licenses/>.
      16             :  */
      17             : 
      18             : // MESSAGE: message types
      19             : // INTERFACE: component interface types
      20             : // COMPONENT: component types
      21             : 
      22             : // Components intended only for use in test cases:
      23             : // (The tests rely on the enum IDs, so don't change the order of these)
      24         287 : INTERFACE(Test1)
      25         137 : COMPONENT(Test1A)
      26         137 : COMPONENT(Test1B)
      27         137 : COMPONENT(Test1Scripted)
      28         287 : INTERFACE(Test2)
      29         137 : COMPONENT(Test2A)
      30         137 : COMPONENT(Test2Scripted)
      31             : 
      32             : // Message types:
      33         287 : MESSAGE(TurnStart)
      34         290 : MESSAGE(Update)
      35         287 : MESSAGE(Update_MotionFormation)
      36         287 : MESSAGE(Update_MotionUnit)
      37         287 : MESSAGE(Update_Final)
      38         287 : MESSAGE(Interpolate) // non-deterministic (use with caution)
      39         287 : MESSAGE(RenderSubmit) // non-deterministic (use with caution)
      40         287 : MESSAGE(ProgressiveLoad) // non-deterministic (use with caution)
      41         287 : MESSAGE(Deserialized) // non-deterministic (use with caution)
      42         287 : MESSAGE(Create)
      43         287 : MESSAGE(Destroy)
      44         287 : MESSAGE(OwnershipChanged)
      45         287 : MESSAGE(PositionChanged)
      46         287 : MESSAGE(InterpolatedPositionChanged)
      47         287 : MESSAGE(MotionUpdate)
      48         287 : MESSAGE(RangeUpdate)
      49         287 : MESSAGE(TerrainChanged)
      50         287 : MESSAGE(VisibilityChanged)
      51         287 : MESSAGE(WaterChanged)
      52         287 : MESSAGE(MovementObstructionChanged)
      53         287 : MESSAGE(ObstructionMapShapeChanged)
      54         287 : MESSAGE(TerritoriesChanged)
      55         287 : MESSAGE(PathResult)
      56         719 : MESSAGE(ValueModification)
      57         503 : MESSAGE(TemplateModification)
      58         287 : MESSAGE(VisionRangeChanged)
      59         287 : MESSAGE(VisionSharingChanged)
      60         476 : MESSAGE(MinimapPing)
      61         287 : MESSAGE(CinemaPathEnded)
      62         287 : MESSAGE(CinemaQueueEnded)
      63         287 : MESSAGE(PlayerColorChanged)
      64         287 : MESSAGE(PlayerWon)
      65         287 : MESSAGE(PlayerDefeated)
      66             : 
      67             : // TemplateManager must come before all other (non-test) components,
      68             : // so that it is the first to be (de)serialized
      69         287 : INTERFACE(TemplateManager)
      70         137 : COMPONENT(TemplateManager)
      71             : 
      72             : // Special component for script component types with no native interface
      73         287 : INTERFACE(UnknownScript)
      74         137 : COMPONENT(UnknownScript)
      75             : 
      76             : // In alphabetical order:
      77             : 
      78         287 : INTERFACE(AIInterface)
      79         137 : COMPONENT(AIInterfaceScripted)
      80             : 
      81         287 : INTERFACE(AIManager)
      82         137 : COMPONENT(AIManager)
      83             : 
      84         287 : INTERFACE(Attack)
      85         137 : COMPONENT(AttackScripted)
      86             : 
      87         287 : INTERFACE(CinemaManager)
      88         137 : COMPONENT(CinemaManager)
      89             : 
      90         287 : INTERFACE(CommandQueue)
      91         137 : COMPONENT(CommandQueue)
      92             : 
      93         287 : INTERFACE(Decay)
      94         137 : COMPONENT(Decay)
      95             : 
      96         287 : INTERFACE(Fogging)
      97         137 : COMPONENT(FoggingScripted)
      98             : 
      99             : // Note: The VisualActor component relies on this component being initialized before itself, in order to support using
     100             : // an entity's footprint shape for the selection boxes. This dependency is not strictly necessary, but it does avoid
     101             : // some extra plumbing code to set up on-demand initialization. If you find yourself forced to break this dependency,
     102             : // see VisualActor's Init method for a description of how you can avoid it.
     103         287 : INTERFACE(Footprint)
     104         137 : COMPONENT(Footprint)
     105             : 
     106         287 : INTERFACE(GarrisonHolder)
     107         137 : COMPONENT(GarrisonHolderScripted)
     108             : 
     109         287 : INTERFACE(GuiInterface)
     110         137 : COMPONENT(GuiInterfaceScripted)
     111             : 
     112         287 : INTERFACE(Identity)
     113         137 : COMPONENT(IdentityScripted)
     114             : 
     115         287 : INTERFACE(Minimap)
     116         137 : COMPONENT(Minimap)
     117             : 
     118         287 : INTERFACE(Mirage)
     119         137 : COMPONENT(MirageScripted)
     120             : 
     121         287 : INTERFACE(Motion)
     122         137 : COMPONENT(MotionBall)
     123         137 : COMPONENT(MotionScripted)
     124             : 
     125         287 : INTERFACE(Obstruction)
     126         137 : COMPONENT(Obstruction)
     127             : 
     128         287 : INTERFACE(ObstructionManager)
     129         137 : COMPONENT(ObstructionManager)
     130             : 
     131         287 : INTERFACE(OverlayRenderer)
     132         137 : COMPONENT(OverlayRenderer)
     133             : 
     134         287 : INTERFACE(Ownership)
     135         137 : COMPONENT(Ownership)
     136             : 
     137         287 : INTERFACE(ParticleManager)
     138         137 : COMPONENT(ParticleManager)
     139             : 
     140         287 : INTERFACE(Pathfinder)
     141         137 : COMPONENT(Pathfinder)
     142             : 
     143         287 : INTERFACE(Player)
     144         137 : COMPONENT(PlayerScripted)
     145             : 
     146         287 : INTERFACE(PlayerManager)
     147         137 : COMPONENT(PlayerManagerScripted)
     148             : 
     149         287 : INTERFACE(Position)
     150         137 : COMPONENT(Position) // must be before VisualActor
     151             : 
     152         287 : INTERFACE(ProjectileManager)
     153         137 : COMPONENT(ProjectileManager)
     154             : 
     155         287 : INTERFACE(RallyPoint)
     156         137 : COMPONENT(RallyPointScripted)
     157             : 
     158         287 : INTERFACE(RallyPointRenderer)
     159         137 : COMPONENT(RallyPointRenderer)
     160             : 
     161         287 : INTERFACE(RangeManager)
     162         137 : COMPONENT(RangeManager)
     163             : 
     164         287 : INTERFACE(RangeOverlayRenderer)
     165         137 : COMPONENT(RangeOverlayRenderer)
     166             : 
     167         287 : INTERFACE(Selectable)
     168         137 : COMPONENT(Selectable)
     169             : 
     170         287 : INTERFACE(Settlement)
     171         137 : COMPONENT(SettlementScripted)
     172             : 
     173         287 : INTERFACE(Sound)
     174         137 : COMPONENT(SoundScripted)
     175             : 
     176         287 : INTERFACE(SoundManager)
     177         137 : COMPONENT(SoundManager)
     178             : 
     179         287 : INTERFACE(ValueModificationManager)
     180         137 : COMPONENT(ValueModificationManagerScripted)
     181             : 
     182         287 : INTERFACE(Terrain)
     183         137 : COMPONENT(Terrain)
     184             : 
     185         287 : INTERFACE(TerritoryDecayManager)
     186         137 : COMPONENT(TerritoryDecayManagerScripted)
     187             : 
     188         287 : INTERFACE(TerritoryInfluence)
     189         137 : COMPONENT(TerritoryInfluence)
     190             : 
     191         287 : INTERFACE(TerritoryManager)
     192         137 : COMPONENT(TerritoryManager)
     193             : 
     194         287 : INTERFACE(TurretHolder)
     195         137 : COMPONENT(TurretHolderScripted)
     196             : 
     197         287 : INTERFACE(UnitMotion)
     198         137 : COMPONENT(UnitMotion) // must be after Obstruction
     199         137 : COMPONENT(UnitMotionScripted)
     200             : 
     201         287 : INTERFACE(UnitMotionManager)
     202         137 : COMPONENT(UnitMotionManager)
     203             : 
     204         287 : INTERFACE(UnitRenderer)
     205         137 : COMPONENT(UnitRenderer)
     206             : 
     207         287 : INTERFACE(Visibility)
     208         137 : COMPONENT(VisibilityScripted)
     209             : 
     210         287 : INTERFACE(Vision)
     211         137 : COMPONENT(Vision)
     212             : 
     213             : // Note: this component relies on the Footprint component being initialized before itself. See the comments above for
     214             : // the Footprint component to find out why.
     215         287 : INTERFACE(Visual)
     216         137 : COMPONENT(VisualActor) // must be after Ownership (dependency in Deserialize) and Vision (dependency in Init)
     217             : 
     218         287 : INTERFACE(WaterManager)
     219         137 : COMPONENT(WaterManager)

Generated by: LCOV version 1.16