2022-08-06 03:01:59 +00:00
|
|
|
#include "EndBehavior.h"
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
#include "BehaviorContext.h"
|
|
|
|
#include "BehaviorBranchContext.h"
|
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
void EndBehavior::Handle(BehaviorContext* context, RakNet::BitStream* bitStream, BehaviorBranchContext branch) {
|
2021-12-05 17:54:36 +00:00
|
|
|
context->InvokeEnd(this->m_startBehavior);
|
|
|
|
}
|
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
void EndBehavior::Calculate(BehaviorContext* context, RakNet::BitStream* bitStream, BehaviorBranchContext branch) {
|
2021-12-05 17:54:36 +00:00
|
|
|
context->InvokeEnd(this->m_startBehavior);
|
|
|
|
}
|
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
void EndBehavior::Load() {
|
2021-12-05 17:54:36 +00:00
|
|
|
this->m_startBehavior = GetInt("start_action");
|
|
|
|
}
|