Migrated engine to using dlmalloc through eng::
This commit is contained in:
@@ -16,20 +16,20 @@ public:
|
||||
};
|
||||
private:
|
||||
Type type_;
|
||||
std::string action_;
|
||||
std::string label_;
|
||||
eng::string action_;
|
||||
eng::string label_;
|
||||
|
||||
GuiElt() {}
|
||||
public:
|
||||
~GuiElt() {}
|
||||
Type type() const { return type_; }
|
||||
const std::string &action() const { return action_; }
|
||||
const std::string &label() const { return label_; }
|
||||
const eng::string &action() const { return action_; }
|
||||
const eng::string &label() const { return label_; }
|
||||
};
|
||||
|
||||
class Gui {
|
||||
public:
|
||||
using EltVec = std::vector<GuiElt>;
|
||||
using EltVec = eng::vector<GuiElt>;
|
||||
private:
|
||||
int64_t place_;
|
||||
EltVec elts_;
|
||||
@@ -38,10 +38,10 @@ public:
|
||||
int64_t place() { return place_; }
|
||||
const EltVec &elts() const { return elts_; }
|
||||
void clear(int64_t p) { place_ = p; elts_.clear(); }
|
||||
bool has_action(const std::string &action) const;
|
||||
void menu_item(const std::string &action, const std::string &label);
|
||||
std::string get_action(int index);
|
||||
std::string menu_debug_string() const;
|
||||
bool has_action(const eng::string &action) const;
|
||||
void menu_item(const eng::string &action, const eng::string &label);
|
||||
eng::string get_action(int index);
|
||||
eng::string menu_debug_string() const;
|
||||
|
||||
// Put a pointer to a gui into the lua registry.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user