aboutsummaryrefslogtreecommitdiff
path: root/Mundus/Data/Tiles/Presets/GroundPresets.cs
blob: ac9f422dfce87bd0d361679604aa0f22e21b23e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
namespace Mundus.Data.Tiles.Presets
{
    using Mundus.Service.Tiles.Items.Types;

    public static class GroundPresets 
    {
        private static GroundTile sSky = new GroundTile("S_sky", -1, false);
        private static GroundTile lGrass = new GroundTile("L_grass", 1);
        private static GroundTile uRoche = new GroundTile("U_roche", 10);

        public static GroundTile GetSSky() 
        {
            return sSky;
        }

        public static GroundTile GetLGrass() 
        {
            return lGrass;
        }

        public static GroundTile GetURoche() {
            return uRoche;
        }

        public static GroundTile GetFromStock(string stock_id) 
        {
            switch (stock_id) 
            {
                case "S_sky": return GetSSky();
                case "L_grass": return GetLGrass();
                case "U_roche": return GetURoche();
                default: return null;
            }
        }
    }
}