uh, left this project for a few days so idk
This commit is contained in:
parent
418a92d38f
commit
168cdd6cf8
18 changed files with 76 additions and 11 deletions
7
crates/moonhare_game/Cargo.toml
Normal file
7
crates/moonhare_game/Cargo.toml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[package]
|
||||
name = "moonhare_game"
|
||||
edition = "2024"
|
||||
version.workspace = true
|
||||
authors.workspace = true
|
||||
|
||||
[dependencies]
|
||||
2
crates/moonhare_game/src/basic/mod.rs
Normal file
2
crates/moonhare_game/src/basic/mod.rs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
pub mod node;
|
||||
pub mod window;
|
||||
3
crates/moonhare_game/src/basic/node.rs
Normal file
3
crates/moonhare_game/src/basic/node.rs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
pub trait Node {
|
||||
|
||||
}
|
||||
10
crates/moonhare_game/src/basic/window.rs
Normal file
10
crates/moonhare_game/src/basic/window.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
use crate::basic::{node::Node};
|
||||
|
||||
pub struct GameWindow {
|
||||
|
||||
}
|
||||
|
||||
|
||||
impl Node for GameWindow {
|
||||
|
||||
}
|
||||
19
crates/moonhare_game/src/lib.rs
Normal file
19
crates/moonhare_game/src/lib.rs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
//! Base functionality for a Moonhare Game Engine Project
|
||||
pub mod basic;
|
||||
|
||||
/// Only one Game may exist per project
|
||||
pub struct Game {
|
||||
pub name: String
|
||||
}
|
||||
|
||||
impl Default for Game {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
name: default_game_name()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn default_game_name() -> String {
|
||||
"Moonhare Game".to_owned()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue