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