2023-11-15 01:38:52 +00:00
|
|
|
#pragma once
|
|
|
|
#include "Behavior.h"
|
|
|
|
|
|
|
|
class ConsumeItemBehavior final : public Behavior
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit ConsumeItemBehavior(const uint32_t behaviorId) : Behavior(behaviorId) {}
|
2024-02-27 07:25:44 +00:00
|
|
|
void Handle(BehaviorContext* context, RakNet::BitStream& bitStream, BehaviorBranchContext branch) override;
|
|
|
|
void Sync(BehaviorContext* context, RakNet::BitStream& bitStream, BehaviorBranchContext branch) override;
|
2023-11-15 01:38:52 +00:00
|
|
|
void Load() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
LOT m_ConsumeLOT;
|
|
|
|
uint32_t m_NumToConsume;
|
|
|
|
Behavior* m_ActionNotConsumed;
|
|
|
|
Behavior* m_ActionConsumed;
|
|
|
|
};
|