void Entity::deserialize()

in procgen/src/entity.cpp [136:177]


void Entity::deserialize(ReadBuffer *b) {
    x = b->read_float();
    y = b->read_float();

    vx = b->read_float();
    vy = b->read_float();

    rx = b->read_float();
    ry = b->read_float();

    type = b->read_int();
    image_type = b->read_int();
    image_theme = b->read_int();

    render_z = b->read_int();

    will_erase = b->read_int();
    collides_with_entities = b->read_int();

    collision_margin = b->read_float();
    rotation = b->read_float();
    vrot = b->read_float();

    is_reflected = b->read_int();
    fire_time = b->read_int();
    spawn_time = b->read_int();
    life_time = b->read_int();
    expire_time = b->read_int();
    use_abs_coords = b->read_int();

    friction = b->read_float();
    smart_step = b->read_int();
    avoids_collisions = b->read_int();
    auto_erase = b->read_int();

    alpha = b->read_float();
    health = b->read_float();
    theta = b->read_float();
    grow_rate = b->read_float();
    alpha_decay = b->read_float();
    climber_spawn_x = b->read_float();
}