예제 #1
0
파일: Models.cs 프로젝트: srakowski/LD42
 internal void SetOccupant(ILocationOccupant occupant)
 {
     if (!(this.Occupant is EmptyLocation))
     {
         throw new Exception("can't place over existing occupant");
     }
     Occupant          = occupant;
     Occupant.Location = this;
 }
예제 #2
0
파일: Models.cs 프로젝트: srakowski/LD42
 public Location(string name, ILocationOccupant occupant)
 {
     Name              = name;
     Occupant          = occupant;
     occupant.Location = this;
 }