Skip to content

Commit

Permalink
Merge pull request #206 from Far-Beyond-Dev/moving-plugins-to-there-o…
Browse files Browse the repository at this point in the history
…wn-repo

Moving plugins to there own repo
  • Loading branch information
tristanpoland authored Dec 7, 2024
2 parents c1358f3 + aa9e09e commit dc6fc5b
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 352 deletions.
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

0 comments on commit dc6fc5b

Please sign in to comment.