|
group2 0.1.0
CSE 125 Group 2
|
Implementation of ECS registry serialization for network transport. More...
#include "RegistrySerialization.hpp"#include "ecs/components/AbilityState.hpp"#include "ecs/components/AnimSnapshot.hpp"#include "ecs/components/BeamState.hpp"#include "ecs/components/ClientId.hpp"#include "ecs/components/CollisionShape.hpp"#include "ecs/components/DeathInfo.hpp"#include "ecs/components/DroppedWeapon.hpp"#include "ecs/components/FireField.hpp"#include "ecs/components/GrenadeState.hpp"#include "ecs/components/Health.hpp"#include "ecs/components/InputSnapshot.hpp"#include "ecs/components/Orientation.hpp"#include "ecs/components/PlayerColor.hpp"#include "ecs/components/PlayerMatchStats.hpp"#include "ecs/components/PlayerName.hpp"#include "ecs/components/PlayerVisState.hpp"#include "ecs/components/Position.hpp"#include "ecs/components/PowerupSpawner.hpp"#include "ecs/components/Projectile.hpp"#include "ecs/components/Ragdoll.hpp"#include "ecs/components/RespawnPoint.hpp"#include "ecs/components/RespawnTimer.hpp"#include "ecs/components/Velocity.hpp"#include "ecs/components/WeaponSpawner.hpp"#include "ecs/components/WeaponState.hpp"#include "entt/entity/fwd.hpp"#include "network/RegistryArchive.hpp"#include <array>#include <cstdint>#include <entt/entt.hpp>#include <stdexcept>#include <tuple>#include <utility>#include <vector>Namespaces | |
| namespace | registry_serialization |
| Utilities for serializing and deserializing the ECS registry over the network. | |
Macros | |
| #define | GROUP2_REGSER_HAS_PARALLEL 0 |
Typedefs | |
| using | registry_serialization::Synced |
Functions | |
| std::vector< uint8_t > | registry_serialization::encodeDelta (const std::vector< uint8_t > &baseline, const std::vector< uint8_t > ¤t) |
| Compute an RLE byte-diff patch from baseline to current. | |
| std::vector< uint8_t > | registry_serialization::applyDelta (const std::vector< uint8_t > &baseline, const uint8_t *patch, std::size_t patchSize, std::size_t outputSize) |
| Reconstruct current from baseline + patch. | |
| std::vector< uint8_t > | registry_serialization::serialize (const entt::registry ®istry) |
| Serialize the full registry state into a byte buffer for transmission. | |
Implementation of ECS registry serialization for network transport.
| #define GROUP2_REGSER_HAS_PARALLEL 0 |