Ejemplo n.º 1
0
 public Door(string n, string f, string to, MainGame.Inputs d, string key, string desc){
     id = n; fromID = f; toID = to; direction = d; keyID = key; description = desc;
 }
Ejemplo n.º 2
0
 public Door GetDoorFrom(string f, MainGame.Inputs d){
     foreach (var val in doors.Values)
     {
         Door dr = val;
         if((dr.fromID == f) && (dr.direction == d)) return dr;
     }
     throw new Exception("Door not found");
 }