generated from tipragot/rust
Improve selection system #78
|
@ -28,7 +28,7 @@ pub enum SelectedTile {
|
|||
}
|
||||
|
||||
impl SelectedTile {
|
||||
/// Returns the index (ID) of the selected tile.
|
||||
/// Returns the entity of the selected tile.
|
||||
/// Returns `None` if no tile is selected.
|
||||
pub const fn get_entity(&self) -> Option<Entity> {
|
||||
match self {
|
||||
|
|
Loading…
Reference in a new issue