mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-04 02:24:12 +02:00
save sendtables by classid
since we only really need to get them by classid
This commit is contained in:
parent
91e5b82f2f
commit
bf65dffb13
8 changed files with 83 additions and 78 deletions
|
|
@ -52,7 +52,9 @@ pub struct ServerClass {
|
|||
pub data_table: SendTableName,
|
||||
}
|
||||
|
||||
#[derive(BitRead, PartialEq, Eq, Hash, Debug, Serialize, Deserialize, Clone, Display)]
|
||||
#[derive(
|
||||
BitRead, PartialEq, Eq, Hash, Debug, Serialize, Deserialize, Clone, Display, PartialOrd, Ord,
|
||||
)]
|
||||
pub struct SendTableName(Rc<String>);
|
||||
|
||||
impl From<String> for SendTableName {
|
||||
|
|
@ -190,7 +192,7 @@ impl<'a> Exclude<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct SendTable {
|
||||
pub name: SendTableName,
|
||||
pub props: Vec<Rc<SendPropDefinition>>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue