Ejemplo n.º 1
0
 public void Interract(IMobile from, IOwnable to)
 {
     if (to.Disable)
     {
         return;
     }
     else
     {
         to.SetOwnerID(from.GetOwnerID());
     }
 }
Ejemplo n.º 2
0
 public void Interract(IMobile from, IResourceSet to)
 {
     if (to.Disable)
     {
         return;
     }
     else
     {
         Players[from.GetOwnerID()].AddResources(to.ExtractResources());
         //ObjectsByPosition.Remove(to.GetID());
         to.Disable = true;
     }
 }