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