1
This commit is contained in:
parent
7ea450c80c
commit
47917094fd
@ -16,6 +16,7 @@ class Bullet : public Entity
|
||||
MetaData::Equip* gun_meta = nullptr;
|
||||
MetaData::Equip* meta = nullptr;
|
||||
Human* player = nullptr;
|
||||
Vector2D dir;
|
||||
Vector2D born_pos;
|
||||
Vector2D born_dir;
|
||||
|
||||
|
@ -40,7 +40,6 @@ class Entity
|
||||
EntitySubType_e entity_subtype = EST_None;
|
||||
Room* room = nullptr;
|
||||
Vector2D pos;
|
||||
Vector2D dir;
|
||||
int updated_times = 0;
|
||||
MovementComponent* movement = nullptr;
|
||||
std::list<ColliderComponent*> colliders;
|
||||
|
@ -42,7 +42,7 @@ void Human::FillMFObjectPart(cs::MFObjectPart* part_data)
|
||||
cs::MFPlayerPart* p = part_data->mutable_union_obj_1();
|
||||
p->set_obj_uniid(entity_uniid);
|
||||
pos.ToPB(p->mutable_pos());
|
||||
dir.ToPB(p->mutable_dir());
|
||||
attack_dir.ToPB(p->mutable_dir());
|
||||
}
|
||||
|
||||
void Human::FillMFObjectFull(cs::MFObjectFull* full_data)
|
||||
@ -51,7 +51,7 @@ void Human::FillMFObjectFull(cs::MFObjectFull* full_data)
|
||||
cs::MFPlayerFull* p = full_data->mutable_union_obj_1();
|
||||
p->set_obj_uniid(entity_uniid);
|
||||
pos.ToPB(p->mutable_pos());
|
||||
dir.ToPB(p->mutable_dir());
|
||||
attack_dir.ToPB(p->mutable_dir());
|
||||
|
||||
p->set_health(health);
|
||||
p->set_dead(dead);
|
||||
|
@ -26,6 +26,9 @@ class Human : public Entity
|
||||
MetaData::Equip* chest_meta = nullptr;
|
||||
MetaData::Equip* weapon_meta = nullptr;
|
||||
|
||||
Vector2D move_dir;
|
||||
Vector2D attack_dir;
|
||||
|
||||
std::string name;
|
||||
float health = 0.0;
|
||||
bool dead = false;
|
||||
@ -45,7 +48,6 @@ class Human : public Entity
|
||||
HumanFrameData frame_data;
|
||||
|
||||
bool moving = false;
|
||||
Vector2D move_dir;
|
||||
|
||||
std::set<Human*> my_seen_players;
|
||||
std::set<Human*> seen_me_players;
|
||||
|
Loading…
x
Reference in New Issue
Block a user