VIPRA Documentation
Loading...
Searching...
No Matches
target_self.hpp
1#pragma once
2
3#include "vipra/vipra_behaviors/targets/target.hpp"
4#include "vipra/vipra_behaviors/util/class_types.hpp"
5
6namespace VIPRA::Behaviors {
7
12struct TargetSelf {
13 DEFAULT_CONSTRUCTIBLE(TargetSelf)
14 COPYABLE(TargetSelf)
15 MOVEABLE(TargetSelf)
16
17 inline auto operator()(auto /*unused*/, Self self) -> Target
18 {
19 return self.target;
20 }
21};
22} // namespace VIPRA::Behaviors
Struct for explicitly targeting the self.
Definition target.hpp:27
Returns the target that calls this.
Definition target_self.hpp:12
Holds information about what to target.
Definition target.hpp:18