Esempio n. 1
0
        public override bool IsCurrentlyPassable(MajorModelEntities model, SeenRoom room)
        {
            var regex = KeyExitData.GetBarrierExitRegex(model, this, BarrierState.Open);

            if (room.Exits.Any(x => regex.IsMatch(x)))
            {
                return(true);
            }
            return(false);
        }
Esempio n. 2
0
 public override bool RemoveMatch(Player player, List <string> exits)
 {
     return(KeyExitData.RemoveMatch(player, exits, this));
 }