mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-18 22:23:24 +00:00
Merge pull request #10666 from neikeq/methodinfo-opequal
MethodBind: Adds operator== to compare by id
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user