예제 #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);
        }
예제 #2
0
 public override bool RemoveMatch(Player player, List <string> exits)
 {
     return(KeyExitData.RemoveMatch(player, exits, this));
 }