Skip to content

Commit

Permalink
StaticGate can choose its prefab_id
Browse files Browse the repository at this point in the history
  • Loading branch information
francofusco committed Mar 31, 2021
1 parent 095a627 commit bf95e62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion flightlib/include/flightlib/objects/static_gate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
namespace flightlib {
class StaticGate : public StaticObject {
public:
StaticGate(std::string id) : StaticObject(id, "rpg_gate") {}
StaticGate(const std::string& id, const std::string& prefab_id="rpg_gate")
: StaticObject(id, prefab_id) {}
~StaticGate() {}
};

Expand Down
2 changes: 1 addition & 1 deletion flightlib/include/flightlib/objects/static_object.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace flightlib {
class StaticObject {
public:
StaticObject(std::string id, std::string prefab_id)
StaticObject(const std::string& id, const std::string& prefab_id)
: id_(id), prefab_id_(prefab_id){};
virtual ~StaticObject(){};

Expand Down

0 comments on commit bf95e62

Please sign in to comment.