Dwarrowdelf.TerrainGen.RiverGen.MyTarget.GetHeuristic C# (CSharp) Method

GetHeuristic() public method

public GetHeuristic ( IntVector3 p ) : ushort
p IntVector3
return ushort
            public ushort GetHeuristic(IntVector3 p)
            {
                // Add a bit random so that the river doesn't go straight
                var r = new MWCRandom(p, 1);
                return (ushort)(p.Z * 10 + r.Next(4));
            }