PageRenderTime 50ms CodeModel.GetById 35ms app.highlight 11ms RepoModel.GetById 1ms app.codeStats 0ms

/WorldView/Constants.cs

#
C# | 126 lines | 84 code | 19 blank | 23 comment | 0 complexity | 0a171b47ca9838066701d7572a5fbb70 MD5 | raw file
  1using System;
  2using System.Collections.Generic;
  3using System.Drawing;
  4
  5namespace MoreTerra
  6{
  7    public class Constants
  8    {
  9		public const Int32 UserSettingsVersion = 1;
 10
 11		public const Int32 currentVersion = 22;
 12        /// <summary>
 13        /// List of Credits
 14        /// </summary>
 15		public const string Credits = @"TJChap2840, Vib Rib, Infinite Monkeys, Dr VideoGames 0031, " + 
 16			"Musluk, Sanktanglia, Metamorf.\r\n\r\nAnd special thanks to kdfb for donating a copy of the game!";
 17                                       
 18
 19        public const Byte WallOffset = (MoreTerra.Structures.TileType.WallStone - 1);
 20
 21        /// <summary>
 22        /// Maximum Number of Items a Chest Can Contain
 23        /// </summary>
 24        public const int ChestMaxItems = 20;
 25
 26        /// <summary>
 27        /// Maximum number of chests per world.
 28        /// </summary>
 29        public const int ChestMaxNumber = 1000;
 30
 31		/// <summary>
 32		/// Maximum number of signs per world.
 33		/// </summary>
 34		public const Int32 SignMaxNumber = 1000;
 35
 36		/// <summary>
 37		/// Maximum length of the text on a sign.  There is no limit in game I can find but this
 38		/// beats trying to go all the way to 16k
 39		/// </summary>
 40		public const Int32 SignMaxSize = 1500;
 41
 42        /// <summary>
 43        /// Points to the root directory for MoreTerra
 44        /// </summary>
 45        public static string ApplicationRootDirectory = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "MoreTerra");
 46
 47        /// <summary>
 48        /// Points to the application log directory
 49        /// </summary>
 50        public static string ApplicationLogDirectory = System.IO.Path.Combine(ApplicationRootDirectory, "Logs");
 51        public static string ApplicationResourceDirectory = System.IO.Path.Combine(ApplicationRootDirectory, "Resources");
 52
 53        public static string ApplicationUserSettingsFile = System.IO.Path.Combine(ApplicationRootDirectory, "UserSettings.xml");
 54
 55		public static string[] OldProgramNames = { "TerrariaWorldViewer", "MoreTerrra" };
 56
 57        // COLOR CONSTANTS
 58
 59        public static class Colors
 60        {
 61            public static Color DIRT = Color.FromArgb(175, 131, 101);
 62            public static Color STONE = Color.FromArgb(128, 128, 128);
 63            public static Color GRASS = Color.FromArgb(28, 216, 94);
 64            public static Color PLANTS = Color.FromArgb(13, 101, 36);
 65            public static Color LIGHT_SOURCE = Color.FromArgb(253, 62, 3);
 66            public static Color IRON = Color.FromArgb(189, 159, 139);
 67            public static Color COPPER = Color.FromArgb(255, 149, 50);
 68            public static Color GOLD = Color.FromArgb(185, 164, 23);
 69            public static Color WOOD = Color.FromArgb(86, 62, 44);
 70            public static Color WOOD_BLOCK = Color.FromArgb(168, 121, 87);
 71            public static Color SILVER = Color.FromArgb(217, 223, 223);
 72            public static Color DECORATIVE = Color.FromArgb(0, 255, 242);
 73            public static Color IMPORTANT = Color.FromArgb(255, 0, 0);
 74            public static Color DEMONITE = Color.FromArgb(98, 95, 167);
 75            public static Color CORRUPTION_GRASS = Color.FromArgb(141, 137, 223);
 76            public static Color EBONSTONE = Color.FromArgb(75, 74, 130);
 77            public static Color CORRUPTION_VINES = Color.FromArgb(122, 97, 143);
 78            public static Color BLOCK = Color.FromArgb(178, 0, 255);
 79            public static Color METEORITE = Color.Magenta;//Color.FromArgb(223, 159, 137);
 80            public static Color CLAY = Color.FromArgb(216, 115, 101);
 81            public static Color DUNGEON_GREEN = Color.FromArgb(26, 136, 34);
 82            public static Color DUNGEON_PINK = Color.FromArgb(169, 49, 117);
 83            public static Color DUNGEON_BLUE = Color.FromArgb(66, 69, 194);
 84            public static Color SPIKES = Color.FromArgb(109, 109, 109);
 85            public static Color WEB = Color.FromArgb(255, 255, 255);
 86            public static Color SAND = Color.FromArgb(255, 218, 56);
 87            public static Color OBSIDIAN = Color.FromArgb(87, 81, 173);
 88            public static Color ASH = Color.FromArgb(68, 68, 76);
 89            public static Color HELLSTONE = Color.FromArgb(102, 34, 34);
 90            public static Color MUD = Color.FromArgb(92, 68, 73);
 91            public static Color UNDERGROUNDJUNGLE_GRASS = Color.FromArgb(143, 215, 29);
 92            public static Color UNDERGROUNDJUNGLE_PLANTS = Color.FromArgb(143, 215, 29);
 93            public static Color UNDERGROUNDJUNGLE_VINES = Color.FromArgb(138, 206, 28);
 94            public static Color UNDERGROUNDJUNGLE_THORNS = Color.FromArgb(94, 48, 55);
 95            public static Color GEMS = Color.FromArgb(42, 130, 250);
 96
 97            public static Color CACTUS = Color.DarkGreen;
 98            public static Color CORAL = Color.LightPink;
 99            public static Color HERB = Color.OliveDrab;
100            public static Color TOMBSTONE = Color.DimGray;
101
102
103            public static Color UNDERGROUNDMUSHROOM_GRASS = Color.FromArgb(93, 127, 255);
104            public static Color UNDERGROUNDMUSHROOM_PLANTS = Color.FromArgb(177, 174, 131);
105            public static Color UNDERGROUNDMUSHROOM_TREES = Color.FromArgb(150, 143, 110);
106
107            public static Color LAVA = Color.FromArgb(255, 72, 0);
108            public static Color WATER = Color.FromArgb(0, 12, 255);
109            public static Color SKY = Color.FromArgb(155, 209, 255);
110
111            public static Color WALL_STONE = Color.FromArgb(66, 66, 66);
112            public static Color WALL_DIRT = Color.FromArgb(88, 61, 46);
113            public static Color WALL_EBONSTONE = Color.FromArgb(61, 58, 78);
114            public static Color WALL_WOOD = Color.FromArgb(73, 51, 36);
115            public static Color WALL_BRICK = Color.FromArgb(60, 60, 60);
116            public static Color WALL_BACKGROUND = Color.FromArgb(50, 50, 60);
117            public static Color WALL_DUNGEON_PINK = Color.FromArgb(84, 25, 60);
118            public static Color WALL_DUNGEON_BLUE = Color.FromArgb(29, 31, 72);
119            public static Color WALL_DUNGEON_GREEN = Color.FromArgb(14, 68, 16);
120			public static Color WALL_MUD = Color.FromArgb(61, 46, 49);
121			public static Color WALL_HELLSTONE = Color.FromArgb(48, 21, 21);
122			public static Color WALL_OBSIDIAN = Color.FromArgb(87, 81, 173);
123            public static Color UNKNOWN = Color.Magenta;
124        }
125    }
126}