blob: 20b1d03e67f51c91d0f7abfe754b7a617d4f098c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
use super::{Entity, EntityContext};
use anyhow::Result;
use hurrycurry_protocol::{glam::IVec2, PlayerID};
pub struct Tutorial {
player: PlayerID,
}
impl Entity for Tutorial {
fn tick(&mut self, _c: EntityContext<'_>) -> Result<()> {
Ok(())
}
fn destructor(&mut self, _c: EntityContext<'_>) {}
fn interact(
&mut self,
_c: EntityContext<'_>,
_pos: Option<IVec2>,
_player: PlayerID,
) -> Result<bool> {
Ok(false)
}
}
|