Beispiel #1
0
 public void Forget(IDiscoverable discoverable)
 {
     if (discoverable == Player.I)
     {
         return;
     }
     discoverable.discovered = false;
     discoverable.onForget.Invoke(discoverable, false);
     onAnyForget.Invoke(discoverable, false);
 }
Beispiel #2
0
 public bool Discover(IDiscoverable discoverable)
 {
     if (discoverable == (Player.I as IDiscoverable))
     {
         return(false);
     }
     if (discovered.Contains(discoverable))
     {
         return(false);
     }
     if (discoverable.currentDirectory != Player.I.currentDirectory && !(discoverable is ImageEntity))
     {
         return(false);
     }
     discoverable.discovered = true;
     discoverable.onDiscover.Invoke(discoverable, false);
     onAnyDiscovery.Invoke(discoverable, false);
     discovered.Add(discoverable);
     return(true);
 }