Initial Fyrox project
This commit is contained in:
commit
27d327933e
23 changed files with 5633 additions and 0 deletions
15
game-dylib/Cargo.toml
Normal file
15
game-dylib/Cargo.toml
Normal file
|
@ -0,0 +1,15 @@
|
|||
|
||||
[package]
|
||||
name = "game_dylib"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
crate-type = ["cdylib"]
|
||||
|
||||
[dependencies]
|
||||
red_dragon_pon = { path = "../game", default-features = false }
|
||||
|
||||
[features]
|
||||
default = ["red_dragon_pon/default"]
|
||||
dylib-engine = ["red_dragon_pon/dylib-engine"]
|
7
game-dylib/src/lib.rs
Normal file
7
game-dylib/src/lib.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
//! Wrapper for hot-reloadable plugin.
|
||||
use red_dragon_pon::{fyrox::plugin::Plugin, Game};
|
||||
|
||||
#[no_mangle]
|
||||
pub fn fyrox_plugin() -> Box<dyn Plugin> {
|
||||
Box::new(Game::default())
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue