Skip to content

Commit

Permalink
update to plugin 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Green-Sky committed Jan 7, 2024
1 parent 635f890 commit 36b57cf
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion external/solanaceae_bridge
2 changes: 1 addition & 1 deletion external/solanaceae_ircclient
2 changes: 1 addition & 1 deletion external/solanaceae_toxic_games
7 changes: 3 additions & 4 deletions plugins/plugin_ngcft1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion plugins/plugin_zox_ngc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <solanaceae/zox/ngc.hpp>

#include <memory>
#include <limits>
#include <iostream>

// fwd
Expand Down Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion plugins/plugin_zox_ngc_hs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 36b57cf

Please sign in to comment.