private void MovePlayerThroughDoor(object sender, room destination) { Player.UpdateLocation(destination); }
private void TraverseDoor(object sender, room destination) { TraverseDoorEvent?.Invoke(sender, destination); }
public gameLogic() { room r = new room(); r.TraverseDoorEvent += MovePlayerThroughDoor; }
public void UpdateLocation(room destination) { this.location = destination; }