deathframe 0.1.2

My game development framework for the amethyst game engine
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::component_prelude::*;

/// For entities which have `Transform`, `Size`, `SpriteRender`, and `ScaleOnce`,
/// their sprites will be scaled to the entity's size once.
/// After scaling, this component is removed from the entity.
#[derive(Serialize, Deserialize)]
pub struct ScaleOnce;

impl Component for ScaleOnce {
    type Storage = NullStorage<Self>;
}

impl Default for ScaleOnce {
    fn default() -> Self {
        Self
    }
}