chore: move to crates folder
This commit is contained in:
1 parent
5d10c0d8a8
commit
cb3660bcd2
3393 files changed
+1270
-741
No files matched your search
@@ -0,0 +1,20 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// Configuration for in-game chat behaviour.
|
||||
///
|
||||
/// Controls chat formatting and display.
|
||||
#[derive(Deserialize, Serialize)]
|
||||
#[serde(default)]
|
||||
pub struct ChatConfig {
|
||||
/// The custom chat format.
|
||||
/// `Note`: it does not apply when secure chat is enabled.
|
||||
pub format: String,
|
||||
}
|
||||
|
||||
impl Default for ChatConfig {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
format: "<{DISPLAYNAME}> {MESSAGE}".to_string(),
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user