optional<Value> EntityMap<Key, Value>::getMaybe(const Key* key) const { return getMaybe(key->getUniqueId()); }
void VisibilityMap::remove(WConstCreature c) { if (auto positions = lastUpdates.getMaybe(c)) removePositions(*positions); lastUpdates.erase(c); }
optional<Value> EntityMap<Key, Value>::getMaybe(WeakPointer<const Key> key) const { return getMaybe(key->getUniqueId()); }