Skip to main content

steel_registry/generated/
vanilla_chat_types.rs

1use crate::chat_type::{ChatStyle, ChatType, ChatTypeDecoration, ChatTypeRegistry};
2use steel_utils::Identifier;
3pub static SAY_COMMAND: ChatType = ChatType {
4    key: Identifier::vanilla_static("say_command"),
5    chat: ChatTypeDecoration {
6        translation_key: "chat.type.announcement",
7        parameters: &["sender", "content"],
8        style: None,
9    },
10    narration: ChatTypeDecoration {
11        translation_key: "chat.type.text.narrate",
12        parameters: &["sender", "content"],
13        style: None,
14    },
15};
16pub static EMOTE_COMMAND: ChatType = ChatType {
17    key: Identifier::vanilla_static("emote_command"),
18    chat: ChatTypeDecoration {
19        translation_key: "chat.type.emote",
20        parameters: &["sender", "content"],
21        style: None,
22    },
23    narration: ChatTypeDecoration {
24        translation_key: "chat.type.emote",
25        parameters: &["sender", "content"],
26        style: None,
27    },
28};
29pub static CHAT: ChatType = ChatType {
30    key: Identifier::vanilla_static("chat"),
31    chat: ChatTypeDecoration {
32        translation_key: "chat.type.text",
33        parameters: &["sender", "content"],
34        style: None,
35    },
36    narration: ChatTypeDecoration {
37        translation_key: "chat.type.text.narrate",
38        parameters: &["sender", "content"],
39        style: None,
40    },
41};
42pub static MSG_COMMAND_OUTGOING: ChatType = ChatType {
43    key: Identifier::vanilla_static("msg_command_outgoing"),
44    chat: ChatTypeDecoration {
45        translation_key: "commands.message.display.outgoing",
46        parameters: &["target", "content"],
47        style: Some(ChatStyle {
48            color: Some("gray"),
49            bold: None,
50            italic: Some(true),
51            underlined: None,
52            strikethrough: None,
53            obfuscated: None,
54        }),
55    },
56    narration: ChatTypeDecoration {
57        translation_key: "chat.type.text.narrate",
58        parameters: &["sender", "content"],
59        style: None,
60    },
61};
62pub static TEAM_MSG_COMMAND_OUTGOING: ChatType = ChatType {
63    key: Identifier::vanilla_static("team_msg_command_outgoing"),
64    chat: ChatTypeDecoration {
65        translation_key: "chat.type.team.sent",
66        parameters: &["target", "sender", "content"],
67        style: None,
68    },
69    narration: ChatTypeDecoration {
70        translation_key: "chat.type.text.narrate",
71        parameters: &["sender", "content"],
72        style: None,
73    },
74};
75pub static TEAM_MSG_COMMAND_INCOMING: ChatType = ChatType {
76    key: Identifier::vanilla_static("team_msg_command_incoming"),
77    chat: ChatTypeDecoration {
78        translation_key: "chat.type.team.text",
79        parameters: &["target", "sender", "content"],
80        style: None,
81    },
82    narration: ChatTypeDecoration {
83        translation_key: "chat.type.text.narrate",
84        parameters: &["sender", "content"],
85        style: None,
86    },
87};
88pub static MSG_COMMAND_INCOMING: ChatType = ChatType {
89    key: Identifier::vanilla_static("msg_command_incoming"),
90    chat: ChatTypeDecoration {
91        translation_key: "commands.message.display.incoming",
92        parameters: &["sender", "content"],
93        style: Some(ChatStyle {
94            color: Some("gray"),
95            bold: None,
96            italic: Some(true),
97            underlined: None,
98            strikethrough: None,
99            obfuscated: None,
100        }),
101    },
102    narration: ChatTypeDecoration {
103        translation_key: "chat.type.text.narrate",
104        parameters: &["sender", "content"],
105        style: None,
106    },
107};
108pub fn register_chat_types(registry: &mut ChatTypeRegistry) {
109    registry.register(&SAY_COMMAND);
110    registry.register(&EMOTE_COMMAND);
111    registry.register(&CHAT);
112    registry.register(&MSG_COMMAND_OUTGOING);
113    registry.register(&TEAM_MSG_COMMAND_OUTGOING);
114    registry.register(&TEAM_MSG_COMMAND_INCOMING);
115    registry.register(&MSG_COMMAND_INCOMING);
116}