wServer.realm.World.IsPassable C# (CSharp) Method

IsPassable() public method

public IsPassable ( int x, int y ) : bool
x int
y int
return bool
        public bool IsPassable(int x, int y)
        {
            var tile = Map[x, y];
            ObjectDesc desc;
            if (XmlDatas.TileDescs[tile.TileId].NoWalk)
                return false;
            if (XmlDatas.ObjectDescs.TryGetValue(tile.ObjType, out desc))
            {
                if (!desc.Static)
                    return false;
            }
            return true;
        }