You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-26 15:46:23 +00:00
Replace most uses of Map by HashMap
* Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
This commit is contained in:
@@ -93,8 +93,8 @@ bool SceneReplicationState::update_sync_time(const ObjectID &p_id, uint64_t p_ms
|
||||
return false;
|
||||
}
|
||||
|
||||
const Set<ObjectID> SceneReplicationState::get_known_nodes(int p_peer) {
|
||||
ERR_FAIL_COND_V(!peers_info.has(p_peer), Set<ObjectID>());
|
||||
const RBSet<ObjectID> SceneReplicationState::get_known_nodes(int p_peer) {
|
||||
ERR_FAIL_COND_V(!peers_info.has(p_peer), RBSet<ObjectID>());
|
||||
return peers_info[p_peer].known_nodes;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user