Commit b50a937f by Ignacio Etcheverry

MethodBind: Adds operator== to compare by id

parent 53c00109
......@@ -185,6 +185,7 @@ struct MethodInfo {
uint32_t flags;
int id;
inline bool operator==(const MethodInfo &p_method) const { return id == p_method.id; }
inline bool operator<(const MethodInfo &p_method) const { return id == p_method.id ? (name < p_method.name) : (id < p_method.id); }
operator Dictionary() const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment