示例#1
0
        public bool CheckConditions(TileManager tileManager, Tile tile, TilePosition pos)
        {
            if (condition != null)
            {
                return(condition.Validate(tileManager, tile, pos));
            }

            return(true);
        }
示例#2
0
        public override bool Validate(TileManager tileManager, Tile tile, TilePosition pos)
        {
            tileManager.world.stats.checkedConditions++;

            return(!condition.Validate(tileManager, tile, pos));
        }