mudroom 0.1.2

A TUI client and server for multiplayer text adventure games.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Attribute {
    pub id: i64,
    pub name: String,
    pub value: i64,
}

impl Attribute {
    pub fn new(id: i64, name: String, value: i64) -> Self {
        Self { id, name, value }
    }
}