adding location stuff

This commit is contained in:
2026-03-26 13:01:50 +01:00
parent 22701bc529
commit 61222df6d1
2 changed files with 5 additions and 0 deletions

View File

@@ -1,7 +1,11 @@
using PeopleVille.Persons;
namespace PeopleVille.Locations namespace PeopleVille.Locations
{ {
public abstract class Location public abstract class Location
{ {
public string Name { get; set; } public string Name { get; set; }
public virtual void UseLocation(Person person) {}
} }
} }

View File

@@ -26,6 +26,7 @@ namespace PeopleVille.Persons
public void Walk(Location newLocation) public void Walk(Location newLocation)
{ {
this.CurrentLocation = newLocation; this.CurrentLocation = newLocation;
newLocation.UseLocation(this);
} }
} }
} }