Cleanup
This commit is contained in:
@@ -10,3 +10,14 @@ typetag = "0.2.20"
|
|||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
ron = "0.10.1"
|
ron = "0.10.1"
|
||||||
|
|
||||||
|
|
||||||
|
[lints.clippy]
|
||||||
|
# Bevy supplies arguments to systems via dependency injection, so it's natural for systems to
|
||||||
|
# request more than 7 arguments, which would undesirably trigger this lint.
|
||||||
|
too_many_arguments = "allow"
|
||||||
|
# Queries may access many components, which would undesirably trigger this lint.
|
||||||
|
type_complexity = "allow"
|
||||||
|
# Make sure macros use their standard braces, such as `[]` for `bevy_ecs::children!`.
|
||||||
|
nonstandard_macro_braces = "warn"
|
||||||
|
needless_return = "allow"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
use bevy::app::Plugin;
|
use bevy::prelude::*;
|
||||||
|
|
||||||
pub mod components;
|
pub mod components;
|
||||||
pub mod prefab;
|
pub mod prefab;
|
||||||
@@ -9,6 +9,8 @@ pub struct PrefabPlugin;
|
|||||||
|
|
||||||
impl Plugin for PrefabPlugin {
|
impl Plugin for PrefabPlugin {
|
||||||
fn build(&self, app: &mut bevy::app::App) {
|
fn build(&self, app: &mut bevy::app::App) {
|
||||||
todo!()
|
app.add_systems(Last, prefab_watcher);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn prefab_watcher() {}
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
use bevy::{
|
use bevy::{
|
||||||
ecs::{
|
ecs::{component::Component, system::EntityCommands, world::World},
|
||||||
component::Component,
|
|
||||||
system::EntityCommands,
|
|
||||||
world::{CommandQueue, World},
|
|
||||||
},
|
|
||||||
math::Vec3,
|
math::Vec3,
|
||||||
};
|
};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ use crate::{
|
|||||||
components::{
|
components::{
|
||||||
camera::{CameraAttachment, CameraMode, CameraPitch, MainCamera},
|
camera::{CameraAttachment, CameraMode, CameraPitch, MainCamera},
|
||||||
player::PlayerDrag,
|
player::PlayerDrag,
|
||||||
tags::{Player, Ship},
|
tags::Player,
|
||||||
},
|
},
|
||||||
plugins::{state_management::StateManagementPlugin, *},
|
plugins::{state_management::StateManagementPlugin, *},
|
||||||
states::play::PlayStartupSystems,
|
states::play::PlayStartupSystems,
|
||||||
@@ -104,6 +104,7 @@ fn setup_scene(
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
fn spawn_ship(
|
fn spawn_ship(
|
||||||
mut commands: Commands,
|
mut commands: Commands,
|
||||||
mut meshes: ResMut<Assets<Mesh>>,
|
mut meshes: ResMut<Assets<Mesh>>,
|
||||||
|
|||||||
Reference in New Issue
Block a user