Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.

Commit

Permalink
Aligned code
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaCatania committed Sep 19, 2019
1 parent 4fc463c commit d3f50e4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions book/src/prefabs/how_to_define_prefabs_adapter.md
Expand Up @@ -82,14 +82,14 @@ If you are attempting to adapt a more complex type, please choose the appropriat

```rust,edition2018,no_run,noplaypen
# extern crate amethyst;
# extern crate serde;
# extern crate serde;
#
# use amethyst::{
# assets::{PrefabData, ProgressCounter},
# ecs::{storage::DenseVecStorage, Component, Entity, WriteStorage},
# Error,
# };
# use serde::{Deserialize, Serialize};
# use serde::{Deserialize, Serialize};
#
# #[derive(Component, Debug, Deserialize, Serialize /* .. */)]
# pub struct Position(pub f32, pub f32, pub f32);
Expand Down
12 changes: 6 additions & 6 deletions book/src/prefabs/how_to_define_prefabs_aggregate.md
Expand Up @@ -33,7 +33,7 @@ If you intend to include a [`Component`] that has not yet got a corresponding [`
```rust,edition2018,no_run,noplaypen
# extern crate amethyst;
# extern crate serde;
# use amethyst::{
# use amethyst::{
# assets::{PrefabData, ProgressCounter},
# core::Named,
# derive::PrefabData,
Expand All @@ -45,7 +45,7 @@ If you intend to include a [`Component`] that has not yet got a corresponding [`
# Error,
# };
# use serde::{Deserialize, Serialize};
#
#
#[derive(Clone, Copy, Component, Debug, Default, Deserialize, Serialize, PrefabData)]
#[prefab(Component)]
#[serde(deny_unknown_fields)]
Expand All @@ -66,7 +66,7 @@ If you intend to include a [`Component`] that has not yet got a corresponding [`
```rust,edition2018,no_run,noplaypen
# extern crate amethyst;
# extern crate serde;
# use amethyst::{
# use amethyst::{
# assets::{PrefabData, ProgressCounter},
# core::Named,
# derive::PrefabData,
Expand All @@ -78,7 +78,7 @@ If you intend to include a [`Component`] that has not yet got a corresponding [`
# Error,
# };
# use serde::{Deserialize, Serialize};
#
#
#[derive(Clone, Copy, Component, Debug, Default, Deserialize, Serialize, PrefabData)]
#[prefab(Component)]
#[serde(deny_unknown_fields)]
Expand Down Expand Up @@ -115,7 +115,7 @@ If you intend to include a [`Component`] that has not yet got a corresponding [`
```rust,edition2018,no_run,noplaypen
# extern crate amethyst;
# extern crate serde;
# use amethyst::{
# use amethyst::{
# assets::{PrefabData, ProgressCounter},
# core::Named,
# derive::PrefabData,
Expand Down Expand Up @@ -153,7 +153,7 @@ If you intend to include a [`Component`] that has not yet got a corresponding [`
```rust,edition2018,no_run,noplaypen
# extern crate amethyst;
# extern crate serde;
# use amethyst::{
# use amethyst::{
# assets::{PrefabData, ProgressCounter},
# core::Named,
# derive::PrefabData,
Expand Down
12 changes: 6 additions & 6 deletions book/src/prefabs/how_to_define_prefabs_prelude.md
Expand Up @@ -23,10 +23,10 @@ Component | Serialized representation | Example(s) |
```rust,edition2018,no_run,noplaypen
# extern crate amethyst;
# extern crate serde;
#
#
# use amethyst::ecs::{storage::DenseVecStorage, Component};
# use serde::{Deserialize, Serialize};
#
#
#[derive(Component, Debug, Deserialize, Serialize /* .. */)]
pub struct Position(pub f32, pub f32, pub f32);
```
Expand All @@ -40,10 +40,10 @@ Component | Serialized representation | Example(s) |
```rust,edition2018,no_run,noplaypen
# extern crate amethyst;
# extern crate serde;
#
#
# use amethyst::ecs::{storage::DenseVecStorage, Component};
# use serde::{Deserialize, Serialize};
#
#
# #[derive(Component, Debug, Deserialize, Serialize /* .. */)]
# pub struct Position {
# pub x: f32,
Expand Down Expand Up @@ -77,13 +77,13 @@ Component | Serialized representation | Example(s) |
```rust,edition2018,no_run,noplaypen
# extern crate amethyst_audio;
# extern crate amethyst_core;
#
#
# use amethyst_audio::output::Output;
# use amethyst_core::{
# math::Point3,
# ecs::{storage::HashMapStorage, Component},
# };
#
#
#[derive(Debug, Component)]
# #[storage(HashMapStorage)]
pub struct AudioListener {
Expand Down
4 changes: 2 additions & 2 deletions book/src/prefabs/how_to_define_prefabs_simple.md
Expand Up @@ -52,7 +52,7 @@ If you are attempting to adapt a more complex type, please choose the appropriat
# extern crate amethyst;
# extern crate derivative;
# extern crate serde;
#
#
# use amethyst::{
# assets::{Prefab, PrefabData},
# derive::PrefabData,
Expand All @@ -65,7 +65,7 @@ If you are attempting to adapt a more complex type, please choose the appropriat
# };
# use derivative::Derivative;
# use serde::{Deserialize, Serialize};
#
#
#[derive(Clone, Copy, Component, Debug, Default, Deserialize, Serialize, PrefabData)]
#[prefab(Component)]
#[serde(deny_unknown_fields)]
Expand Down

0 comments on commit d3f50e4

Please sign in to comment.