fish-lib 0.2.3

A work-in-progress fishing game library containing the game/storage logic for a discord fishing game I'm working on.
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[derive(Debug, Default, Clone, PartialEq)]
pub struct LocationUnlockRequirements {
    pub locations_unlocked: Vec<i32>,
    pub species_caught: Vec<i32>,
}

impl LocationUnlockRequirements {
    pub fn is_empty(&self) -> bool {
        self.locations_unlocked.is_empty() && self.species_caught.is_empty()
    }
}