mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Clean code
This commit is contained in:
parent
e611d695b1
commit
6f0997705f
@ -116,19 +116,11 @@ pub enum StayFollow{
|
||||
Follow,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
#[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
|
||||
pub struct PetState{
|
||||
pub stay: bool,
|
||||
}
|
||||
|
||||
impl Default for PetState {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
stay: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl PetState {
|
||||
pub fn get_state(&self) -> bool{
|
||||
self.stay
|
||||
|
Loading…
Reference in New Issue
Block a user