Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Indy2222 committed Jul 22, 2023
1 parent 3752ff9 commit c2b3e0c
Show file tree
Hide file tree
Showing 17 changed files with 14 additions and 23 deletions.
3 changes: 2 additions & 1 deletion crates/gui/src/button.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ impl<'w, 's> ButtonCommands<'w, 's> for GuiCommands<'w, 's> {
style: Style {
justify_content: JustifyContent::Center,
align_items: AlignItems::Center,
size: style.size,
width: style.width,
height: style.height,
margin: style.margin,
..default()
},
Expand Down
3 changes: 2 additions & 1 deletion crates/menu/src/mainmenu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ fn button(commands: &mut GuiCommands, parent: Entity, action: ButtonAction, capt
let button = commands
.spawn_button(
OuterStyle {
size: Size::new(Val::Percent(100.), Val::Percent(8.)),
width: Val::Percent(100.),
height: Val::Percent(8.),
margin: UiRect::new(
Val::Percent(0.),
Val::Percent(0.),
Expand Down
2 changes: 1 addition & 1 deletion crates/multiplayer/src/game.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bevy::prelude::*;
use de_core::{baseset::GameSet, player::Player};
use de_core::player::Player;
use de_net::{FromGame, FromServer, GameOpenError, JoinError, ToGame, ToServer};

use crate::{
Expand Down
1 change: 0 additions & 1 deletion crates/multiplayer/src/messages.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::{net::SocketAddr, time::Instant};

use bevy::prelude::*;
use de_core::baseset::GameSet;
use de_net::{FromGame, FromServer, InPackage, PackageBuilder, Peers, ToGame, ToServer};

use crate::{
Expand Down
1 change: 0 additions & 1 deletion crates/multiplayer/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use bevy::{
prelude::*,
tasks::{IoTaskPool, Task},
};
use de_core::baseset::GameSet;
use de_net::{
startup, ConnErrorReceiver, InPackage, OutPackage, PackageReceiver, PackageSender, Socket,
};
Expand Down
1 change: 0 additions & 1 deletion crates/multiplayer/src/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use std::{
};

use bevy::prelude::*;
use de_core::baseset::GameSet;
use de_net::{FromGame, ToGame};
use tracing::{debug, info, trace};

Expand Down
4 changes: 2 additions & 2 deletions crates/objects/src/solids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use bevy::{
asset::{AssetLoader, LoadContext, LoadedAsset},
ecs::system::SystemParam,
prelude::*,
reflect::TypeUuid,
reflect::{TypePath, TypeUuid},
utils::BoxedFuture,
};
use de_core::{objects::ObjectType, state::AppState};
Expand Down Expand Up @@ -65,7 +65,7 @@ impl AssetCollectionLoader for Solids {
}
}

#[derive(TypeUuid)]
#[derive(TypeUuid, TypePath)]
#[uuid = "7b0690cc-951e-487b-8e69-db3119f5fb32"]
pub struct SolidObject {
ichnography: Ichnography,
Expand Down
1 change: 0 additions & 1 deletion crates/pathing/src/fplugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use bevy::{
tasks::{AsyncComputeTaskPool, Task},
};
use de_core::{
baseset::GameSet,
gamestate::GameState,
objects::{ObjectType, StaticSolid},
state::AppState,
Expand Down
1 change: 0 additions & 1 deletion crates/signs/src/bars.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ use bevy::{
};
use de_camera::{CameraDistance, DistanceSet};
use de_core::{
baseset::GameSet,
objects::{Active, ObjectType},
state::AppState,
visibility::{VisibilityFlags, VisibilitySet},
Expand Down
1 change: 0 additions & 1 deletion crates/signs/src/line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use ahash::AHashMap;
use bevy::prelude::*;
use bevy::reflect::TypeUuid;
use bevy::render::render_resource::{AsBindGroup, ShaderRef};
use de_core::baseset::GameSet;
use de_core::cleanup::DespawnOnGameExit;
use de_core::objects::Active;
use de_core::state::AppState;
Expand Down
2 changes: 1 addition & 1 deletion crates/signs/src/markers.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bevy::prelude::*;
use de_camera::{CameraDistance, DistanceSet};
use de_core::{baseset::GameSet, state::AppState};
use de_core::state::AppState;
use de_terrain::MarkerVisibility;

use crate::{DISTANCE_FLAG_BIT, MAX_VISIBILITY_DISTANCE};
Expand Down
4 changes: 2 additions & 2 deletions crates/signs/src/pole.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use ahash::{AHashMap, AHashSet};
use bevy::prelude::*;
use de_core::{
baseset::GameSet, cleanup::DespawnOnGameExit, objects::ObjectType, projection::ToAltitude,
state::AppState, vecord::Vec2Ord,
cleanup::DespawnOnGameExit, objects::ObjectType, projection::ToAltitude, state::AppState,
vecord::Vec2Ord,
};
use de_objects::{AssetCollection, SceneType, Scenes};

Expand Down
2 changes: 1 addition & 1 deletion crates/spawner/src/destroyer.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bevy::prelude::*;
use de_core::{baseset::GameSet, objects::ObjectType, player::Player, state::AppState};
use de_core::{objects::ObjectType, player::Player, state::AppState};
use de_objects::Health;

use crate::{ObjectCounter, SpawnerSet};
Expand Down
1 change: 0 additions & 1 deletion crates/spawner/src/draft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use bevy::pbr::NotShadowReceiver;
use bevy::scene::SceneInstance;
use bevy::{pbr::NotShadowCaster, prelude::*};
use de_core::{
baseset::GameSet,
gamestate::GameState,
objects::{ActiveObjectType, BuildingType, MovableSolid, ObjectType, StaticSolid},
projection::ToFlat,
Expand Down
7 changes: 2 additions & 5 deletions crates/spawner/src/gameend.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
use bevy::prelude::*;
use de_core::{
baseset::GameSet, gamestate::GameState, gconfig::GameConfig, gresult::GameResult,
state::AppState,
};
use de_core::{gamestate::GameState, gconfig::GameConfig, gresult::GameResult, state::AppState};

use crate::ObjectCounter;

Expand All @@ -11,7 +8,7 @@ pub(crate) struct GameEndPlugin;
impl Plugin for GameEndPlugin {
fn build(&self, app: &mut App) {
app.add_systems(
GameSet::PostUpdate,
PostUpdate,
game_end_detection_system.run_if(in_state(GameState::Playing)),
);
}
Expand Down
1 change: 0 additions & 1 deletion crates/spawner/src/spawner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use bevy::prelude::*;
use de_core::{
baseset::GameSet,
gamestate::GameState,
gconfig::GameConfig,
objects::{Active, ActiveObjectType, MovableSolid, ObjectType, Playable, StaticSolid},
Expand Down
2 changes: 1 addition & 1 deletion crates/terrain/src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use bevy::{
texture::ImageSampler,
},
};
use de_core::{baseset::GameSet, gamestate::GameState, state::AppState};
use de_core::{gamestate::GameState, state::AppState};
use iyes_progress::prelude::*;

use crate::{shader::TerrainMaterial, terrain::Terrain};
Expand Down

0 comments on commit c2b3e0c

Please sign in to comment.