Update lib/game/components/layer.dart

Co-authored-by: Alejandro Santiago <dev@alestiago.com>
pull/40/head
Rui Miguel Alonso 4 years ago committed by GitHub
parent 18ac7db374
commit b823b15399
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -34,10 +34,12 @@ mixin Layered<T extends Forge2DGame> on BodyComponent<T> {
} }
} }
/// Indicates the type of a layer. /// The [Layer]s a [BodyComponent] can be in.
/// ///
/// Each layer type is associated with a maskBits value to define possible /// Each [Layer] is associated with a maskBits value to define possible
/// collisions within that plane. /// collisions within that plane.
///
/// Usually used with [Layered].
enum Layer { enum Layer {
/// Collide with all elements. /// Collide with all elements.
all, all,

Loading…
Cancel
Save