2021-12-05 18:54:36 +01:00
|
|
|
#include "EndBehavior.h"
|
|
|
|
|
|
|
|
#include "BehaviorContext.h"
|
|
|
|
#include "BehaviorBranchContext.h"
|
|
|
|
|
2024-02-27 01:25:44 -06:00
|
|
|
void EndBehavior::Handle(BehaviorContext* context, RakNet::BitStream& bitStream, BehaviorBranchContext branch) {
|
2021-12-05 18:54:36 +01:00
|
|
|
context->InvokeEnd(this->m_startBehavior);
|
|
|
|
}
|
|
|
|
|
2024-02-27 01:25:44 -06:00
|
|
|
void EndBehavior::Calculate(BehaviorContext* context, RakNet::BitStream& bitStream, BehaviorBranchContext branch) {
|
2021-12-05 18:54:36 +01:00
|
|
|
context->InvokeEnd(this->m_startBehavior);
|
|
|
|
}
|
|
|
|
|
|
|
|
void EndBehavior::Load() {
|
|
|
|
this->m_startBehavior = GetInt("start_action");
|
|
|
|
}
|