示例#1
0
文件: Tile.cs 项目: Commkeen/Archmage
        public Color GetSpriteBackColor()
        {
            Color c = null;
            int   currentPriority = int.MaxValue;

            for (int i = 0; i < (int)TileLayer.NUM_OF_LAYERS; i++)
            {
                Tile_SimpleFeature feature = GetFeature(GetLayer((TileLayer)i));
                if (feature.priority < currentPriority && RandomizedColors[i, 1] != null)
                {
                    c = RandomizedColors[i, 1];
                    currentPriority = feature.priority;
                }
            }
            return(c);
        }
示例#2
0
文件: Tile.cs 项目: Commkeen/Archmage
        public char GetSprite()
        {
            char sprite          = ' ';
            int  currentPriority = int.MaxValue;

            for (int i = 0; i < (int)TileLayer.NUM_OF_LAYERS; i++)
            {
                Tile_SimpleFeature feature = GetFeature(GetLayer((TileLayer)i));
                if (feature.priority < currentPriority && feature.displayChar != null)
                {
                    sprite          = feature.displayChar;
                    currentPriority = feature.priority;
                }
            }
            return(sprite);
        }