1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Some bevy componets don't belongs to any module

use bevy::prelude::*;

/// Every collider should have a type flag.
/// Then the sensor can know the collision type.
#[derive(Debug, Component, Clone)]
pub enum ColliderFlag {
    WALL,
    BLOCK(BlobEntityIndex)
}

/// denote which blob it belongs to.
/// The u32 value is the idx value inside `Entity` class
#[derive(Component, Clone, Debug)]
pub struct BlobEntityIndex(pub Option<u32>);