aboutsummaryrefslogtreecommitdiff
path: root/src/components.rs
blob: bea87f20e608695dbae33197f22c30debb715519 (plain)
1
2
3
4
5
6
7
8
9
10
11
use std::path::PathBuf;

use bevy::prelude::*;

/// A tooltip on an object, which can be displayed.
#[derive(Component)]
pub struct Tooltip(pub String);

/// A marker component for entities spawned by dirworld handlers, i.e. they should be removed when the room changes.
#[derive(Component)]
pub struct DirworldEntity(pub PathBuf);