Struct: TTaggedQuery

template <class... T>
struct TTaggedQuery;

Systems world tagged query iterator.

This is basically an extension to TQuery that allows to ensure additional components without the need for reading them - useful for tag components (ones that just mark actors and do not store any data).

Note

User should rather construct queries with USystemsWorld::TaggedQuery instead o constructing queries by hand.

Example

systems_world_tagged_query

Methods

  • Iter

    public:
    TQuery<T...> Iter() const;
    

    Constructs TQuery from requested actor components and tag components.

  • TTaggedQuery

    public:
    TTaggedQuery(
        USystemsWorld* InSystems
    );
    

    Constructs tagged query from systems.

    An equivalent of calling USystemsWorld::TaggedQuery


    Arguments

    • InSystems

      USystemsWorld* InSystems
      

      Pointer to systems world of which actor components user wants to iterate on.

  • With

    public:
    template <class W>
    TTaggedQuery& With();
    

    Handy wrapper for TTaggedQuery::WithRaw.

    Note

    Make sure W inherits from UActorComponent.

  • WithRaw

    public:
    TTaggedQuery& WithRaw(
        const UClass* Type
    );
    

    Request given component type to exists in queried actor without accesing its contents.

    Note

    Make sure Type inherits from UActorComponent.


    Arguments

    • Type

      const UClass* Type
      
  • Without

    public:
    template <class W>
    TTaggedQuery& Without();
    

    Handy wrapper for TTaggedQuery::WithoutRaw.

    Note

    Make sure W inherits from UActorComponent.

  • WithoutRaw

    public:
    TTaggedQuery& WithoutRaw(
        const UClass* Type
    );
    

    Request given component type to not exists in queried actors.

    Note

    Make sure Type inherits from UActorComponent.


    Arguments

    • Type

      const UClass* Type
      

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