First iteration that should work correctly but seems to have some memory issues with entities
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user