2021-12-05 17:54:36 +00:00
|
|
|
#include "EndBehavior.h"
|
|
|
|
|
|
|
|
#include "BehaviorContext.h"
|
|
|
|
#include "BehaviorBranchContext.h"
|
|
|
|
|
2024-02-27 07:25:44 +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);
|
|
|
|
}
|
|
|
|
|
2024-02-27 07:25:44 +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);
|
|
|
|
}
|
|
|
|
|
|
|
|
void EndBehavior::Load() {
|
|
|
|
this->m_startBehavior = GetInt("start_action");
|
|
|
|
}
|