18#ifndef TRINITYCORE_SCRIPT_ACTION_RESULT_H
19#define TRINITYCORE_SCRIPT_ACTION_RESULT_H
53 explicit operator bool()
const {
return !
_action.expired(); }
58 std::weak_ptr<ActionResultValueHolder<T>>
_action;
71 if (std::shared_ptr<ActionBase> ptr =
_action.lock())
75 explicit operator bool()
const {
return !
_action.expired(); }
std::weak_ptr< ActionBase > _action
ActionResultSetter(std::shared_ptr< ActionBase > action)
ActionResultSetter()=default
ActionResultSetter()=default
std::weak_ptr< ActionResultValueHolder< T > > _action
ActionResultSetter(std::shared_ptr< ActionResultValueHolder< T > > &&action)
void MarkActionCompleted(ActionBase &action)