Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving plugins to there own repo #206

Merged
merged 2 commits into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions plugin_api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,4 @@ horizon-plugin-api = "0.1.11"
###### BEGIN AUTO-GENERATED PLUGIN DEPENDENCIES - DO NOT EDIT THIS SECTION ######
chronos_plugin = { path = "../plugins/chronos_plugin", version = "0.1.0" }
player_lib = { path = "../plugins/player_lib", version = "0.1.0" }
stars_beyond_plugin = { path = "../plugins/stars_beyond", version = "0.1.0" }
unreal_adapter_horizon = { path = "../plugins/unreal_adapter_horizon", version = "0.1.0" }
###### END AUTO-GENERATED PLUGIN DEPENDENCIES ######
10 changes: 1 addition & 9 deletions plugin_api/src/plugin_imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,13 @@ pub use chronos_plugin::Plugin as chronos_plugin_plugin;
pub use player_lib;
pub use player_lib::*;
pub use player_lib::Plugin as player_lib_plugin;
pub use stars_beyond_plugin;
pub use stars_beyond_plugin::*;
pub use stars_beyond_plugin::Plugin as stars_beyond_plugin_plugin;
pub use unreal_adapter_horizon;
pub use unreal_adapter_horizon::*;
pub use unreal_adapter_horizon::Plugin as unreal_adapter_horizon_plugin;


// Invoke the macro with all discovered plugins
pub fn load_plugins() -> HashMap<String, (Pluginstate, Plugin)> {
let plugins = crate::load_plugins!(
chronos_plugin,
player_lib,
stars_beyond_plugin,
unreal_adapter_horizon
player_lib
);
plugins
}
9 changes: 0 additions & 9 deletions plugins/stars_beyond/Cargo.toml

This file was deleted.

46 changes: 0 additions & 46 deletions plugins/stars_beyond/src/lib.rs

This file was deleted.

21 changes: 0 additions & 21 deletions plugins/unreal_adapter_horizon/.gitignore

This file was deleted.

10 changes: 0 additions & 10 deletions plugins/unreal_adapter_horizon/Cargo.toml

This file was deleted.

201 changes: 0 additions & 201 deletions plugins/unreal_adapter_horizon/LICENSE

This file was deleted.

5 changes: 0 additions & 5 deletions plugins/unreal_adapter_horizon/README.md

This file was deleted.

46 changes: 0 additions & 46 deletions plugins/unreal_adapter_horizon/src/lib.rs

This file was deleted.

5 changes: 2 additions & 3 deletions server/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ mod event_rep;
use lazy_static::lazy_static;
use plugin_api::plugin_imports::*;


lazy_static! {
static ref SERVER: Server = Server::new().unwrap();
}
Expand Down Expand Up @@ -183,9 +182,9 @@ fn on_connect(socket: SocketRef, Data(data): Data<serde_json::Value>) {

let player_arc: Arc<horizon_data_types::Player> = Arc::new(player);

let casted_struct = plugin_api::get_plugin!(unreal_adapter_horizon, target_thread.plugins);
// let casted_struct = plugin_api::get_plugin!(unreal_adapter_horizon, target_thread.plugins);

casted_struct.player_joined(socket, player_arc);
// casted_struct.player_joined(socket, player_arc);
}

//-----------------------------------------------------------------------------
Expand Down
Loading