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
12
13
14
15
16
use serde::{Deserialize, Serialize};

#[derive(Debug, Default, Clone, PartialEq, Serialize, Deserialize)]
pub struct BaitAttributes {
    level: u64,
}

impl BaitAttributes {
    pub fn new(level: u64) -> Self {
        Self { level }
    }

    pub fn get_level(&self) -> u64 {
        self.level
    }
}