Brunot
Loading...
Searching...
No Matches
FOR_ALL_COMPONENTS.h File Reference

A modernized X macro that lets you do something for every component that exists in the engine. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FOR_ALL_COMPONENTS(DO)
 a macro to do something for every component in the engine

Detailed Description

A modernized X macro that lets you do something for every component that exists in the engine.

Author
Aidan Hartman (aidan.nosp@m..har.nosp@m.tman@.nosp@m.digi.nosp@m.pen.e.nosp@m.du)
Date
2026 / 08 / 18

Macro Definition Documentation

◆ FOR_ALL_COMPONENTS

#define FOR_ALL_COMPONENTS ( DO)
Value:
DO(ScriptHolder, 50) \
DO(Physics,100) \
DO(Transform, 300) \
DO(Collider, 400) \
DO(Sprite, 500) \
DO(Card, 700) \
DO(Deck, 750) \
DO(Player, 800) \
DO(Board, 850) \
DO(Scene, 900) \
DO(PauseScene, 915) \
DO(MainScene, 920) \
DO(MainMenuScene, 925) \
DO(OptionsScene, 935) \
DO(CreditsScene, 940) \
DO(TutorialScene, 945) \
DO(Background, 950) \
DO(Backdrop, 951) \
DO(WinScreenScene, 960) \
DO(PlayerCountScene, 965) \
DO(PlayerJoinScene, 970) \
DO(Menu, 1200) \
DO(ActionList, 1300) \
DO(MenuPosition, 1525) \
DO(Selector, 1600) \
DO(Button, 1700) \
Component that stores all actions currently affecting the parent entity.
Definition ActionList.h:30
The component that belongs to the entity that all entities are children to, inside a scene.
Definition Backdrop.h:29
The component that holds the texture behind everything.
Definition Background.h:41
Component that is responsible for managing the gameplay board, where cards are placed by Players.
Definition Board.h:38
A class that can be "activated" to broadcast a message.
Definition Button.h:28
Definition Card.h:34
Definition Collider.h:29
Definition ConfirmDestructiveActionScene.h:25
Definition CreditsScene.h:25
Component that represents a deck of playing cards.
Definition Deck.h:31
Definition MainMenuScene.h:25
Definition MainScene.h:25
Menu Position is a component that simply stores where in a menu an item/entity is.
Definition MenuPosition.h:27
A menu that organizes its parents' children (in the node) either horizontally or vertically.
Definition Menu.h:41
Definition OptionsScene.h:24
A Component that generates several types of particles, by holding several ParticleEmitters.
Definition ParticleGenerator.h:60
Definition PauseScene.h:25
Definition Physics.h:21
Definition PlayerCountScene.h:25
Component that handles players connecting / disconnecting input devices in the "connect controllers" ...
Definition PlayerJoinScene.h:29
The component responsible for storing information relevant to the player.
Definition Player.h:31
Definition Scene.h:24
Definition ScriptHolder.h:30
An indicator that loops through a parents' nodes children and can "select" them on keypress.
Definition Selector.h:32
Definition Splash Screen Scene.h:25
A component that renders an image on an entity, or text.
Definition Sprite.h:38
Definition Transform.h:28
Definition TutorialScene.h:25
An indicator that loops through a parents' nodes children and can "select" them on keypress.
Definition WinScreenScene.h:29

a macro to do something for every component in the engine

Warning
FilteredSelector is not included in this macro, b/c it shares a component id with Selector. if it needs to be handled seperately, then you'll need to add it manually
Parameters
DOa macro that takes 2+ arguments, (component name, component id, ...) and expands to whatever you want