update to plugin 7

This commit is contained in:
2024-01-07 17:44:50 +01:00
parent 635f890b47
commit bb4eb160f0
10 changed files with 19 additions and 13 deletions

View File

@@ -4,6 +4,7 @@
#include <solanaceae/util/config_model.hpp>
#include <memory>
#include <limits>
#include <iostream>
#define RESOLVE_INSTANCE(x) static_cast<x*>(solana_api->resolveInstance(#x))
@@ -62,10 +63,12 @@ SOLANA_PLUGIN_EXPORT void solana_plugin_stop(void) {
g_taa.reset();
}
SOLANA_PLUGIN_EXPORT void solana_plugin_tick(float delta) {
SOLANA_PLUGIN_EXPORT float solana_plugin_tick(float delta) {
(void)delta;
//std::cout << "PLUGIN TAA TICK()\n";
g_taa->iterate();
return std::numeric_limits<float>::max();
}
} // extern C