示例#1
0
    public BiomeCode GetBiome(float5 data)
    {
        BiomeType type = this.baseErosionTable[data.b, data.e];

        if (type == BiomeType.OCEAN)
        {
            return(this.oceanTempHumidTable[data.t, data.h]);
        }
        else if (type == BiomeType.LOW)
        {
            return(this.lowTempHumidTable[data.t, data.h]);
        }
        else if (type == BiomeType.MID)
        {
            return(this.midTempHumidTable[data.t, data.h]);
        }
        else if (type == BiomeType.PEAK)
        {
            return(this.peakTempHumidTable[data.t, data.h]);
        }
        else
        {
            return(BiomeCode.DESERT);
        }
    }
示例#2
0
 public static extern float5 mono_return_float5(float5 s, int addend);
示例#3
0
	public static extern float5 mono_return_float5 (float5 s, int addend);
示例#4
0
    /*
     * Main Function, assigns biome based on
     */
    public byte AssignBiome(float[] data)
    {
        float5 biomeInfo = new float5(data[0], data[1], data[2], data[3], data[4]);

        return((byte)this.biomeTable.GetBiome(biomeInfo));
    }