update to plugin 7

This commit is contained in:
Green Sky 2024-01-07 17:44:50 +01:00
parent 635f890b47
commit bb4eb160f0
No known key found for this signature in database
10 changed files with 19 additions and 13 deletions

@ -1 +1 @@
Subproject commit 55df71d96e9abcc0c87791df0fc0847987641c25
Subproject commit 0b5ef1f1012d024e9107b04ac8937d408e3507e3

@ -1 +1 @@
Subproject commit c3082e0140b14a8d64faab42a65fbb418facc5f7
Subproject commit 5802e7ddab314454062ea55bad2ab3db22b072b8

@ -1 +1 @@
Subproject commit 15d057e92be9b2356fe6392dbb6586b319cb6914
Subproject commit 3044b0db605f671a5c2c42be02b8a586efddffcc

@ -1 +1 @@
Subproject commit 103f36f2d222c32be4403daeb04cf123b3a31337
Subproject commit f02b03da7cfcfc1d6889dfe085ef61c53d436343

@ -1 +1 @@
Subproject commit 96bab0200f5b13671756abe7e3132ed78aaa2a40
Subproject commit 75e7c5e3c77ecd5e03ad0a1429e3a5fc6d067408

@ -1 +1 @@
Subproject commit 80d1cffdcdacb832c9fd4415e3da5b4a453ebd04
Subproject commit 3356861028eab8af14ff12b3d0edfa4078d9a935

View File

@ -96,11 +96,10 @@ SOLANA_PLUGIN_EXPORT void solana_plugin_stop(void) {
g_ngcextep.reset();
}
SOLANA_PLUGIN_EXPORT void solana_plugin_tick(float delta) {
//std::cout << "PLUGIN NGCEXT TICK()\n";
g_ngcft1->iterate(delta);
SOLANA_PLUGIN_EXPORT float solana_plugin_tick(float delta) {
const float ft_interval = g_ngcft1->iterate(delta);
g_sha1_ngcft1->iterate(delta);
return ft_interval;
}
} // extern C

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

View File

@ -3,6 +3,7 @@
#include <solanaceae/zox/ngc.hpp>
#include <memory>
#include <limits>
#include <iostream>
// fwd
@ -57,9 +58,10 @@ SOLANA_PLUGIN_EXPORT void solana_plugin_stop(void) {
g_zngc.reset();
}
SOLANA_PLUGIN_EXPORT void solana_plugin_tick(float delta) {
SOLANA_PLUGIN_EXPORT float solana_plugin_tick(float delta) {
(void)delta;
//std::cout << "PLUGIN ZNGC TICK()\n";
return std::numeric_limits<float>::max();
}
} // extern C

View File

@ -94,9 +94,11 @@ SOLANA_PLUGIN_EXPORT void solana_plugin_stop(void) {
g_zngchs.reset();
}
SOLANA_PLUGIN_EXPORT void solana_plugin_tick(float delta) {
SOLANA_PLUGIN_EXPORT float solana_plugin_tick(float delta) {
//std::cout << "PLUGIN ZNGCHS TICK()\n";
g_zngchs->tick(delta);
return 0.1f; // TODO: use the actual timers
}
} // extern C