Class: USystemsGroupComponent

class SYSTEMS_API USystemsGroupComponent
    : public USystemsActorComponent;

Reflection-enabled


Component that groups actor components of certain type.

The point of this component is to allow Systems World to have a single point of iteration on more than one component of given type, which is not possible to do by default in Systems Architecture, because queries are single-typed.

This is useful mostly for cases where actor might have multiple components of same type which we would like to iterate on.

Note

Since queries require concrete type for each component, it's best to create classes per each components group type and make them inherit this class, so you register that specialized group type into Systems World and use same specialized group type in component queries.


Methods

  • Iter

    public:
    template <typename T>
    auto Iter();
    

    Gives iterator that yields grouped components that casts to T.

  • TagIter

    public:
    template <typename T>
    auto TagIter(
        FName Tag
    );
    

    Gives iterator that yields grouped components that has Tag tag and casts to T.


    Arguments

    • Tag

      FName Tag
      

Documentation built with Unreal-Doc v1.0.8 tool by PsichiX