Workspace cleanup
parent
c20bd5d7a4
commit
0e8fb47973
|
@ -579,7 +579,6 @@ version = "0.1.0"
|
|||
dependencies = [
|
||||
"anyhow",
|
||||
"cgmath",
|
||||
"crossbeam",
|
||||
"galactica-behavior",
|
||||
"galactica-constants",
|
||||
"galactica-content",
|
||||
|
@ -587,19 +586,14 @@ dependencies = [
|
|||
"galactica-render",
|
||||
"galactica-ui",
|
||||
"galactica-world",
|
||||
"image",
|
||||
"nalgebra",
|
||||
"pollster",
|
||||
"rand",
|
||||
"rapier2d",
|
||||
"walkdir",
|
||||
"wgpu",
|
||||
"winit",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "galactica-behavior"
|
||||
version = "0.0.0"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"cgmath",
|
||||
"galactica-content",
|
||||
|
@ -608,11 +602,11 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "galactica-constants"
|
||||
version = "0.0.0"
|
||||
version = "0.1.0"
|
||||
|
||||
[[package]]
|
||||
name = "galactica-content"
|
||||
version = "0.0.0"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"cgmath",
|
||||
|
@ -625,20 +619,17 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "galactica-gameobject"
|
||||
version = "0.0.0"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"cgmath",
|
||||
"crossbeam",
|
||||
"galactica-content",
|
||||
"galactica-render",
|
||||
"nalgebra",
|
||||
"rand",
|
||||
"rapier2d",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "galactica-render"
|
||||
version = "0.0.0"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"bytemuck",
|
||||
|
@ -653,7 +644,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "galactica-ui"
|
||||
version = "0.0.0"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"cgmath",
|
||||
"galactica-content",
|
||||
|
@ -664,7 +655,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "galactica-world"
|
||||
version = "0.0.0"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"cgmath",
|
||||
"crossbeam",
|
||||
|
|
42
Cargo.toml
42
Cargo.toml
|
@ -1,8 +1,3 @@
|
|||
[package]
|
||||
name = "galactica"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[profile.dev]
|
||||
opt-level = 0
|
||||
debug = true
|
||||
|
@ -26,42 +21,45 @@ panic = "abort"
|
|||
incremental = false
|
||||
rpath = false
|
||||
|
||||
|
||||
[workspace]
|
||||
members = [
|
||||
"crates/content",
|
||||
"crates/render",
|
||||
"crates/constants",
|
||||
"crates/world",
|
||||
"crates/behavior",
|
||||
"crates/gameobject",
|
||||
"crates/ui",
|
||||
]
|
||||
members = ["crates/*"]
|
||||
default-members = ["crates/galactica"]
|
||||
resolver = "2"
|
||||
|
||||
[workspace.package]
|
||||
keywords = []
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
rust-version = "1.70"
|
||||
categories = []
|
||||
authors = []
|
||||
homepage = ""
|
||||
repository = ""
|
||||
license = ""
|
||||
|
||||
[dependencies]
|
||||
# Internal crates
|
||||
[workspace.dependencies]
|
||||
|
||||
galactica-constants = { path = "crates/constants" }
|
||||
galactica-content = { path = "crates/content" }
|
||||
galactica-render = { path = "crates/render" }
|
||||
galactica-constants = { path = "crates/constants" }
|
||||
galactica-world = { path = "crates/world" }
|
||||
galactica-behavior = { path = "crates/behavior" }
|
||||
galactica-gameobject = { path = "crates/gameobject" }
|
||||
galactica-ui = { path = "crates/ui" }
|
||||
galactica = { path = "crates/galactica" }
|
||||
|
||||
# Files
|
||||
image = { version = "0.24", features = ["png"] }
|
||||
# Graphics
|
||||
serde = { version = "1.0.193", features = ["derive"] }
|
||||
winit = "0.28"
|
||||
wgpu = "0.18"
|
||||
# Physics
|
||||
bytemuck = { version = "1.12", features = ["derive"] }
|
||||
rapier2d = { version = "0.17.2" }
|
||||
nalgebra = "0.32.3"
|
||||
crossbeam = "0.8.3"
|
||||
# Misc helpers
|
||||
pollster = "0.3"
|
||||
anyhow = "1.0"
|
||||
# TODO: migrate to nalgebra
|
||||
cgmath = "0.18.0"
|
||||
rand = "0.8.5"
|
||||
walkdir = "2.4.0"
|
||||
toml = "0.8.8"
|
||||
|
|
|
@ -1,9 +1,17 @@
|
|||
[package]
|
||||
name = "galactica-behavior"
|
||||
version = "0.0.0"
|
||||
edition = "2021"
|
||||
description = "AI behaviors for Galaictica"
|
||||
categories = { workspace = true }
|
||||
keywords = { workspace = true }
|
||||
version = { workspace = true }
|
||||
rust-version = { workspace = true }
|
||||
authors = { workspace = true }
|
||||
edition = { workspace = true }
|
||||
homepage = { workspace = true }
|
||||
repository = { workspace = true }
|
||||
license = { workspace = true }
|
||||
|
||||
[dependencies]
|
||||
galactica-content = { path = "../content" }
|
||||
galactica-world = { path = "../world" }
|
||||
cgmath = "0.18.0"
|
||||
galactica-content = { workspace = true }
|
||||
galactica-world = { workspace = true }
|
||||
cgmath = { workspace = true }
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
[package]
|
||||
name = "galactica-constants"
|
||||
version = "0.0.0"
|
||||
edition = "2021"
|
||||
description = "Compile-time parameters for Galactica"
|
||||
categories = { workspace = true }
|
||||
keywords = { workspace = true }
|
||||
version = { workspace = true }
|
||||
rust-version = { workspace = true }
|
||||
authors = { workspace = true }
|
||||
edition = { workspace = true }
|
||||
homepage = { workspace = true }
|
||||
repository = { workspace = true }
|
||||
license = { workspace = true }
|
||||
|
|
|
@ -1,13 +1,21 @@
|
|||
[package]
|
||||
name = "galactica-content"
|
||||
version = "0.0.0"
|
||||
edition = "2021"
|
||||
description = "Galactica's game content parser"
|
||||
categories = { workspace = true }
|
||||
keywords = { workspace = true }
|
||||
version = { workspace = true }
|
||||
rust-version = { workspace = true }
|
||||
authors = { workspace = true }
|
||||
edition = { workspace = true }
|
||||
homepage = { workspace = true }
|
||||
repository = { workspace = true }
|
||||
license = { workspace = true }
|
||||
|
||||
[dependencies]
|
||||
toml = "0.8.8"
|
||||
serde = { version = "1.0.193", features = ["derive"] }
|
||||
anyhow = "1.0"
|
||||
cgmath = "0.18.0"
|
||||
walkdir = "2.4.0"
|
||||
nalgebra = "0.32.3"
|
||||
image = { version = "0.24", features = ["png"] }
|
||||
serde = { workspace = true }
|
||||
toml = { workspace = true }
|
||||
anyhow = { workspace = true }
|
||||
cgmath = { workspace = true }
|
||||
walkdir = { workspace = true }
|
||||
nalgebra = { workspace = true }
|
||||
image = { workspace = true }
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
[[bin]]
|
||||
name = "galactic"
|
||||
path = "src/main.rs"
|
||||
|
||||
[package]
|
||||
name = "galactica"
|
||||
description = "TODO"
|
||||
categories = { workspace = true }
|
||||
keywords = { workspace = true }
|
||||
version = { workspace = true }
|
||||
rust-version = { workspace = true }
|
||||
authors = { workspace = true }
|
||||
edition = { workspace = true }
|
||||
homepage = { workspace = true }
|
||||
repository = { workspace = true }
|
||||
license = { workspace = true }
|
||||
|
||||
[dependencies]
|
||||
galactica-content = { workspace = true }
|
||||
galactica-render = { workspace = true }
|
||||
galactica-constants = { workspace = true }
|
||||
galactica-world = { workspace = true }
|
||||
galactica-behavior = { workspace = true }
|
||||
galactica-gameobject = { workspace = true }
|
||||
galactica-ui = { workspace = true }
|
||||
|
||||
winit = { workspace = true }
|
||||
wgpu = { workspace = true }
|
||||
pollster = { workspace = true }
|
||||
anyhow = { workspace = true }
|
||||
cgmath = { workspace = true }
|
|
@ -4,9 +4,11 @@ use std::time::Instant;
|
|||
use winit::event::{ElementState, MouseButton, MouseScrollDelta, TouchPhase, VirtualKeyCode};
|
||||
|
||||
use crate::camera::Camera;
|
||||
use crate::{content, inputstatus::InputStatus};
|
||||
use crate::inputstatus::InputStatus;
|
||||
|
||||
use galactica_behavior::{behavior, ShipBehavior};
|
||||
use galactica_constants;
|
||||
use galactica_content as content;
|
||||
use galactica_gameobject as object;
|
||||
use galactica_render::{ObjectSprite, ParticleBuilder, UiSprite};
|
||||
use galactica_ui as ui;
|
||||
|
@ -16,15 +18,17 @@ pub struct Game {
|
|||
pub input: InputStatus,
|
||||
pub last_update: Instant,
|
||||
pub player: ShipPhysicsHandle,
|
||||
pub system: object::System,
|
||||
pub camera: Camera,
|
||||
paused: bool,
|
||||
pub time_scale: f32,
|
||||
|
||||
world: World,
|
||||
shipbehaviors: Vec<Box<dyn ShipBehavior>>,
|
||||
playerbehavior: behavior::Player,
|
||||
|
||||
content: content::Content,
|
||||
|
||||
pub system: object::System,
|
||||
pub camera: Camera,
|
||||
world: World,
|
||||
pub start_instant: Instant,
|
||||
|
||||
// TODO: clean this up
|
|
@ -1,14 +1,19 @@
|
|||
[package]
|
||||
name = "galactica-gameobject"
|
||||
version = "0.0.0"
|
||||
edition = "2021"
|
||||
description = "Galactica's game data manager"
|
||||
categories = { workspace = true }
|
||||
keywords = { workspace = true }
|
||||
version = { workspace = true }
|
||||
rust-version = { workspace = true }
|
||||
authors = { workspace = true }
|
||||
edition = { workspace = true }
|
||||
homepage = { workspace = true }
|
||||
repository = { workspace = true }
|
||||
license = { workspace = true }
|
||||
|
||||
[dependencies]
|
||||
galactica-render = { path = "../render" }
|
||||
galactica-content = { path = "../content" }
|
||||
galactica-render = { workspace = true }
|
||||
galactica-content = { workspace = true }
|
||||
|
||||
rapier2d = { version = "0.17.2" }
|
||||
nalgebra = "0.32.3"
|
||||
crossbeam = "0.8.3"
|
||||
cgmath = "0.18.0"
|
||||
rand = "0.8.5"
|
||||
cgmath = { workspace = true }
|
||||
rand = { workspace = true }
|
||||
|
|
|
@ -1,20 +1,24 @@
|
|||
[package]
|
||||
name = "galactica-render"
|
||||
version = "0.0.0"
|
||||
edition = "2021"
|
||||
description = "Galactica's rendering backend"
|
||||
categories = { workspace = true }
|
||||
keywords = { workspace = true }
|
||||
version = { workspace = true }
|
||||
rust-version = { workspace = true }
|
||||
authors = { workspace = true }
|
||||
edition = { workspace = true }
|
||||
homepage = { workspace = true }
|
||||
repository = { workspace = true }
|
||||
license = { workspace = true }
|
||||
|
||||
[dependencies]
|
||||
# Internal crates
|
||||
galactica-content = { path = "../content" }
|
||||
galactica-constants = { path = "../constants" }
|
||||
galactica-content = { workspace = true }
|
||||
galactica-constants = { workspace = true }
|
||||
|
||||
# Misc helpers
|
||||
anyhow = "1.0"
|
||||
cgmath = "0.18.0"
|
||||
rand = "0.8.5"
|
||||
# Files
|
||||
image = { version = "0.24", features = ["png"] }
|
||||
# Graphics
|
||||
winit = "0.28"
|
||||
wgpu = "0.18"
|
||||
bytemuck = { version = "1.12", features = ["derive"] }
|
||||
anyhow = { workspace = true }
|
||||
cgmath = { workspace = true }
|
||||
rand = { workspace = true }
|
||||
image = { workspace = true }
|
||||
winit = { workspace = true }
|
||||
wgpu = { workspace = true }
|
||||
bytemuck = { workspace = true }
|
||||
|
|
|
@ -1,11 +1,19 @@
|
|||
[package]
|
||||
name = "galactica-ui"
|
||||
version = "0.0.0"
|
||||
edition = "2021"
|
||||
description = "UI routines for Galactica"
|
||||
categories = { workspace = true }
|
||||
keywords = { workspace = true }
|
||||
version = { workspace = true }
|
||||
rust-version = { workspace = true }
|
||||
authors = { workspace = true }
|
||||
edition = { workspace = true }
|
||||
homepage = { workspace = true }
|
||||
repository = { workspace = true }
|
||||
license = { workspace = true }
|
||||
|
||||
[dependencies]
|
||||
galactica-content = { path = "../content" }
|
||||
galactica-world = { path = "../world" }
|
||||
galactica-render = { path = "../render" }
|
||||
galactica-gameobject = { path = "../gameobject" }
|
||||
cgmath = "0.18.0"
|
||||
galactica-content = { workspace = true }
|
||||
galactica-world = { workspace = true }
|
||||
galactica-render = { workspace = true }
|
||||
galactica-gameobject = { workspace = true }
|
||||
cgmath = { workspace = true }
|
||||
|
|
|
@ -1,15 +1,23 @@
|
|||
[package]
|
||||
name = "galactica-world"
|
||||
version = "0.0.0"
|
||||
edition = "2021"
|
||||
description = "World interactions for Galactica"
|
||||
categories = { workspace = true }
|
||||
keywords = { workspace = true }
|
||||
version = { workspace = true }
|
||||
rust-version = { workspace = true }
|
||||
authors = { workspace = true }
|
||||
edition = { workspace = true }
|
||||
homepage = { workspace = true }
|
||||
repository = { workspace = true }
|
||||
license = { workspace = true }
|
||||
|
||||
[dependencies]
|
||||
galactica-render = { path = "../render" }
|
||||
galactica-content = { path = "../content" }
|
||||
galactica-gameobject = { path = "../gameobject" }
|
||||
galactica-render = { workspace = true }
|
||||
galactica-content = { workspace = true }
|
||||
galactica-gameobject = { workspace = true }
|
||||
|
||||
rapier2d = { version = "0.17.2" }
|
||||
nalgebra = "0.32.3"
|
||||
crossbeam = "0.8.3"
|
||||
cgmath = "0.18.0"
|
||||
rand = "0.8.5"
|
||||
rapier2d = { workspace = true }
|
||||
nalgebra = { workspace = true }
|
||||
crossbeam = { workspace = true }
|
||||
cgmath = { workspace = true }
|
||||
rand = { workspace = true }
|
||||
|
|
Loading…
Reference in New Issue