Initial Fyrox project

This commit is contained in:
Alexey 2025-07-08 17:43:03 +03:00
commit 27d327933e
23 changed files with 5633 additions and 0 deletions

15
game-dylib/Cargo.toml Normal file
View 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
View 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())
}