Compare commits
2 Commits
8e3cecdc6a
...
02b74c8ee5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
02b74c8ee5 | ||
|
|
42831b71a1 |
@@ -1,7 +1,26 @@
|
||||
use ::mon::*;
|
||||
use godot::classes::{ISprite2D, Sprite2D};
|
||||
use godot::prelude::*;
|
||||
|
||||
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;
|
||||
|
||||
#[derive(GodotClass)]
|
||||
#[class(base=Sprite2D)]
|
||||
struct Engine {
|
||||
instance: mon::battle::Engine,
|
||||
|
||||
base: Base<Sprite2D>,
|
||||
}
|
||||
|
||||
#[godot_api]
|
||||
impl ISprite2D for Engine {
|
||||
fn init(base: Base<Sprite2D>) -> Self {
|
||||
Self {
|
||||
instance: mon::battle::Engine::new(),
|
||||
base: base,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,11 +4,11 @@ compatibility_minimum = 4.1
|
||||
reloadable = true
|
||||
|
||||
[libraries]
|
||||
linux.debug.x86_64 = "res://../rust/target/debug/libmon.so"
|
||||
linux.release.x86_64 = "res://../rust/target/release/libmon.so"
|
||||
windows.debug.x86_64 = "res://../rust/target/debug/mon.dll"
|
||||
windows.release.x86_64 = "res://../rust/target/release/mon.dll"
|
||||
macos.debug = "res://../rust/target/debug/libmon.dylib"
|
||||
macos.release = "res://../rust/target/release/libmon.dylib"
|
||||
macos.debug.arm64 = "res://../rust/target/debug/libmon.dylib"
|
||||
macos.release.arm64 = "res://../rust/target/release/libmon.dylib"
|
||||
linux.debug.x86_64 = "res://../gmon/target/debug/libgmon.so"
|
||||
linux.release.x86_64 = "res://../gmon/target/release/libgmon.so"
|
||||
windows.debug.x86_64 = "res://../gmon/target/debug/gmon.dll"
|
||||
windows.release.x86_64 = "res://../gmon/target/release/gmon.dll"
|
||||
macos.debug = "res://../gmon/target/debug/libgmon.dylib"
|
||||
macos.release = "res://../gmon/target/release/libgmon.dylib"
|
||||
macos.debug.arm64 = "res://../gmon/target/debug/libgmon.dylib"
|
||||
macos.release.arm64 = "res://../gmon/target/release/libgmon.dylib"
|
||||
|
||||
Reference in New Issue
Block a user