Compare commits
3 Commits
61f7299e42
...
8e3cecdc6a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8e3cecdc6a | ||
|
|
e94a802034 | ||
|
|
9130797eec |
27
src/rust/Cargo.lock → src/gmon/Cargo.lock
generated
27
src/rust/Cargo.lock → src/gmon/Cargo.lock
generated
@@ -237,6 +237,18 @@ version = "0.3.2"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
|
checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "gmon"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"futures",
|
||||||
|
"godot",
|
||||||
|
"mon",
|
||||||
|
"native_db",
|
||||||
|
"native_model",
|
||||||
|
"serde",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "godot"
|
name = "godot"
|
||||||
version = "0.2.4"
|
version = "0.2.4"
|
||||||
@@ -344,6 +356,10 @@ version = "2.7.4"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
|
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "mon"
|
||||||
|
version = "0.1.0"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "nanoserde"
|
name = "nanoserde"
|
||||||
version = "0.1.37"
|
version = "0.1.37"
|
||||||
@@ -436,17 +452,6 @@ version = "0.1.0"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
|
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "mon"
|
|
||||||
version = "0.1.0"
|
|
||||||
dependencies = [
|
|
||||||
"futures",
|
|
||||||
"godot",
|
|
||||||
"native_db",
|
|
||||||
"native_model",
|
|
||||||
"serde",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "proc-macro2"
|
name = "proc-macro2"
|
||||||
version = "1.0.93"
|
version = "1.0.93"
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "mon"
|
name = "gmon"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
@@ -9,6 +9,7 @@ godot = "0.2.4"
|
|||||||
native_db = "0.8.1"
|
native_db = "0.8.1"
|
||||||
native_model = "0.4.20"
|
native_model = "0.4.20"
|
||||||
serde = "1.0.218"
|
serde = "1.0.218"
|
||||||
|
mon = { path = "../mon" }
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib"]
|
||||||
7
src/gmon/src/battle.rs
Normal file
7
src/gmon/src/battle.rs
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
use ::mon::*;
|
||||||
|
|
||||||
|
pub type Instance = mon::battle::Instance;
|
||||||
|
pub type Engine = mon::battle::Engine;
|
||||||
|
pub type Team = mon::battle::Team;
|
||||||
|
pub type Event = mon::battle::Event;
|
||||||
|
pub type Move = mon::battle::Move;
|
||||||
9
src/gmon/src/lib.rs
Executable file
9
src/gmon/src/lib.rs
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
use godot::prelude::*;
|
||||||
|
|
||||||
|
struct MyExtension;
|
||||||
|
|
||||||
|
#[gdextension]
|
||||||
|
unsafe impl ExtensionLibrary for MyExtension {}
|
||||||
|
|
||||||
|
pub mod battle;
|
||||||
|
pub mod mon;
|
||||||
5
src/gmon/src/mon.rs
Normal file
5
src/gmon/src/mon.rs
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
use ::mon::*;
|
||||||
|
|
||||||
|
pub type Instance = mon::mon::Instance;
|
||||||
|
pub type Species = mon::mon::Species;
|
||||||
|
pub type Dex = mon::mon::Dex;
|
||||||
1
src/mon/src/lib.rs
Executable file
1
src/mon/src/lib.rs
Executable file
@@ -0,0 +1 @@
|
|||||||
|
pub mod mon;
|
||||||
@@ -1 +0,0 @@
|
|||||||
pub mod src;
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
use godot::prelude::*;
|
|
||||||
|
|
||||||
struct MyExtension;
|
|
||||||
|
|
||||||
#[gdextension]
|
|
||||||
unsafe impl ExtensionLibrary for MyExtension {
|
|
||||||
}
|
|
||||||
|
|
||||||
pub mod src;
|
|
||||||
Reference in New Issue
Block a user