Botcraft 1.21.4
Loading...
Searching...
No Matches
BehaviourClient.hpp
Go to the documentation of this file.
1#pragma once
2
5
6namespace Botcraft
7{
8 /// @brief A ManagersClient extended with a blackboard that can store any
9 /// kind of data and a virtual Yield function.
10 /// You should **not** inherit from this class, but from TemplatedBehaviourClient
11 /// or SimpleBehaviourClient instead.
13 {
14 public:
15 BehaviourClient(const bool use_renderer_);
16 virtual ~BehaviourClient();
17
18 virtual void Yield() = 0;
19
21
22 public:
23 void OnReset() override;
24 void OnValueChanged(const std::string& key, const std::any& value) override;
25 void OnValueRemoved(const std::string& key) override;
26
27 protected:
29 };
30} // namespace Botcraft
A ManagersClient extended with a blackboard that can store any kind of data and a virtual Yield funct...
virtual void Yield()=0
void OnValueRemoved(const std::string &key) override
void OnValueChanged(const std::string &key, const std::any &value) override
A map wrapper to store arbitrary data.
A client containing the different managers, and performing client-side physics.