refactor and prep rpbot
This commit is contained in:
12
src/solanaceae/rpbot/rpbot.cpp
Normal file
12
src/solanaceae/rpbot/rpbot.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
#include "./rpbot.hpp"
|
||||
|
||||
RPBot::RPBot(
|
||||
TextCompletionI& completion,
|
||||
ConfigModelI& conf
|
||||
) : _completion(completion), _conf(conf) {
|
||||
}
|
||||
|
||||
float RPBot::tick(float time_delta) {
|
||||
return 10.f;
|
||||
}
|
||||
|
18
src/solanaceae/rpbot/rpbot.hpp
Normal file
18
src/solanaceae/rpbot/rpbot.hpp
Normal file
@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include <solanaceae/util/config_model.hpp>
|
||||
#include <solanaceae/llama-cpp-web/text_completion_interface.hpp>
|
||||
|
||||
struct RPBot {
|
||||
TextCompletionI& _completion;
|
||||
ConfigModelI& _conf;
|
||||
|
||||
public:
|
||||
RPBot(
|
||||
TextCompletionI& completion,
|
||||
ConfigModelI& conf
|
||||
);
|
||||
|
||||
float tick(float time_delta);
|
||||
};
|
||||
|
Reference in New Issue
Block a user