First iteration that should work correctly but seems to have some memory issues with entities

This commit is contained in:
Lol3rrr
2024-10-17 21:15:03 +02:00
parent 840ac071b1
commit 14c422983e
15 changed files with 735 additions and 18 deletions

View File

@@ -8,7 +8,7 @@ pub struct EntityContext {
pub filter: EntityFilter,
}
#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq)]
pub struct EntityState {
pub id: i32,
pub class: Arc<str>,
@@ -16,7 +16,7 @@ pub struct EntityState {
pub props: Vec<EntityProp>,
}
#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq)]
pub struct EntityProp {
pub field_info: super::sendtables::FieldInfo,
pub prop_info: super::propcontroller::PropInfo,

View File

@@ -89,7 +89,7 @@ pub struct PropController {
#[derive(Debug, Clone)]
pub struct SpecialIDs {}
#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq)]
pub struct PropInfo {
pub id: u32,
// pub prop_type: PropType,

View File

@@ -6,7 +6,7 @@ pub struct Serializer {
pub fields: Vec<Field>,
}
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct FieldInfo {
pub decoder: decoder::Decoder,
pub should_parse: bool,