1
This commit is contained in:
parent
283d200fe6
commit
0050b02e81
@ -1765,6 +1765,11 @@ void Human::FillItemList(::google::protobuf::RepeatedPtrField<::cs::MFPair>* pb_
|
||||
}
|
||||
}
|
||||
|
||||
void Human::SummonHero(int heroid)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Human::AddObserver(Human* observer)
|
||||
{
|
||||
observers_.insert(observer);
|
||||
|
@ -228,7 +228,7 @@ class Human : public MoveableEntity
|
||||
void FillBodyState(::google::protobuf::RepeatedPtrField<::cs::MFBodyState>* states);
|
||||
void FillBuffList(::google::protobuf::RepeatedPtrField<::cs::MFBuff>* pb_buff_list);
|
||||
void FillItemList(::google::protobuf::RepeatedPtrField<::cs::MFPair>* pb_item_list);
|
||||
void SummonHero();
|
||||
void SummonHero(int heroid);
|
||||
void AddObserver(Human* observer);
|
||||
void RemoveObserver(Human* observer);
|
||||
void SendUpdateMsg();
|
||||
|
@ -571,11 +571,10 @@ Car* Room::CreateCar(Human* driver,
|
||||
}
|
||||
|
||||
Hero* Room::CreateHero(Entity* master,
|
||||
int hero_uniid,
|
||||
MetaData::Player* meta,
|
||||
const a8::Vec2& pos)
|
||||
{
|
||||
Hero* hero = EntityFactory::Instance()->MakeHero(hero_uniid);
|
||||
Hero* hero = EntityFactory::Instance()->MakeHero(AllocUniid());
|
||||
hero->meta = meta;
|
||||
hero->room = this;
|
||||
hero->SetPos(pos);
|
||||
|
@ -115,7 +115,6 @@ public:
|
||||
MetaData::Equip* meta,
|
||||
const a8::Vec2& pos);
|
||||
Hero* CreateHero(Entity* master,
|
||||
int hero_uniid,
|
||||
MetaData::Player* meta,
|
||||
const a8::Vec2& pos);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user