GameEntityComponent
Inheritance 48 descendants
- GameEntityComponentcurrent
- 0xa98b5b03
- 0xef17c645 (removed in patch 16.20)
- AnimationGeComponent
- AttachmentGeComponent
- AttackableUnitGeComponent
- AutoRegionTaggingGeComponent
- BarracksGeComponent
- BillboardGeComponent
- CharacterMeshGeComponent
- CinematicCameraGeComponent
- DeathGeComponent
- DeathHelper (removed in patch 15.10)
- DragonCampGeComponent
- DynamicMaterialGeComponent
- DynamicMaterialHelper (removed in patch 15.10)
- DynamicPointLightGeComponent
- DynamicSpotlightGeComponent
- EnvMeshGeComponent
- EsportsBannerGeComponent
- GearGeComponent (removed in patch 16.11)
- GreenGeComponent (removed in patch 15.22)
- HierarchyGeComponent
- IconGeComponent (removed in patch 15.22)
- LightChannelsGeComponent
- LightRegionGeComponent
- ModesScenarioGeComponent
- MonarchRegionLocatorGeComponent (removed in patch 16.5)
- NavRegionGeComponent
- NetworkingGeComponent
- NeutralCampGeComponent
- NewIconGeComponent
- PaintedRegionGeComponent
- PlanarReflectorGeComponent
- RedGeComponent (removed in patch 15.22)
- RegionGeComponent
- ScriptGeComponent
- SequencerGeComponent
- SequencerHelper (removed in patch 15.10)
- SfxGeComponent
- SfxHelper (removed in patch 15.10)
- ShopGeComponent
- SkinCharacterGeComponent
- StateMachineGeComponent
- SuperwardGeComponent
- TeamGeComponent
- TeamSpawnPointGeComponent
- VfxGeComponent
- WorldSpaceUiGeComponent
Class Documentation
Edit documentationA game entity component: one runtime part of a GameEntity. A component definition in the entity's template creates it when the entity is created, and the component reads its settings from that definition.
Lifecycle. The client calls every component of an entity at these points, in the entity's component order:
| Event | When |
|---|---|
| created | right after the definition creates the component, while the entity is built |
| spawned | after the entity is added to the world and its tags are registered. Most components read their definition here and register with the entity's SequencerGeComponent. |
| activate | when the entity activates. Activating an entity that is already active does nothing. |
| deactivate | when the entity deactivates |
| reset | when the world resets |
| transform changed | when the entity's transform is set |
Components that listen for entity events through IGameEntityComponentEvents are told
after every component of the entity has activated, and before any component
deactivates.
Components that tick each frame do so through IUpdatableGeComponent.
Reset. When the world resets, each placed entity is deactivated without events and its components get the reset call. The client then activates again every placed entity whose template starts active. Entities spawned at runtime are destroyed instead.
Destruction. The entity destroys its components in reverse order.
Many components act on only some of these events and leave the others empty.