SadConsole.Game.WorldGeneration.Tile.UpdateBiomeBitmask C# (CSharp) 메소드

UpdateBiomeBitmask() 공개 메소드

public UpdateBiomeBitmask ( ) : void
리턴 void
        public void UpdateBiomeBitmask()
        {
            int count = 0;

            if (Collidable && Top != null && Top.BiomeType == BiomeType)
                count += 1;
            if (Collidable && Bottom != null && Bottom.BiomeType == BiomeType)
                count += 4;
            if (Collidable && Left != null && Left.BiomeType == BiomeType)
                count += 8;
            if (Collidable && Right != null && Right.BiomeType == BiomeType)
                count += 2;

            BiomeBitmask = count;
        }