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 PurchasableAttributes {
    cost: u32,
}

impl PurchasableAttributes {
    pub fn new(cost: u32) -> Self {
        Self { cost }
    }

    pub fn get_cost(&self) -> u32 {
        self.cost
    }
}