PageRenderTime 232ms CodeModel.GetById 81ms app.highlight 68ms RepoModel.GetById 53ms app.codeStats 12ms

/WorldView/Structures/TileType.cs

#
C# | 319 lines | 282 code | 36 blank | 1 comment | 0 complexity | 8f65898bf6464fdd558dfe6a174d5524 MD5 | raw file
  1namespace MoreTerra.Structures
  2{
  3    using System;
  4
  5    public class TileType
  6    {
  7        public const Byte Dirt = 0;
  8        public const Byte Stone = 1;
  9        public const Byte Grass = 2;
 10        public const Byte Plants = 3;
 11        public const Byte Torch = 4;
 12        public const Byte Trees = 5;
 13        public const Byte Iron = 6;
 14        public const Byte Copper = 7;
 15        public const Byte Gold = 8;
 16        public const Byte Silver = 9;
 17
 18        public const Byte Door = 10;
 19        public const Byte DoorOpen = 11;
 20        public const Byte Heart = 12;
 21        public const Byte Bottles = 13;
 22        public const Byte Table = 14;
 23        public const Byte Chair = 15;
 24        public const Byte Anvil = 16;
 25        public const Byte Furnace = 17;
 26        public const Byte CraftingTable = 18;
 27        public const Byte WoodenPlatform = 19;
 28
 29        public const Byte PlantsDecorative = 20;
 30        public const Byte Chest = 21;
 31        public const Byte Demonite = 22;
 32        public const Byte CorruptionGrass = 23;
 33        public const Byte CorruptionPlants = 24;
 34        public const Byte Ebonstone = 25;
 35        public const Byte Altar = 26;
 36        public const Byte Sunflower = 27;
 37        public const Byte Pot = 28;
 38        public const Byte PiggyBank = 29;
 39
 40        public const Byte BlockWood = 30;
 41        public const Byte ShadowOrb = 31;
 42        public const Byte CorruptionVines = 32;
 43        public const Byte Candle = 33;
 44        public const Byte ChandlerCopper = 34;
 45        public const Byte ChandlerSilver = 35;
 46        public const Byte ChandlerGold = 36;
 47        public const Byte Meteorite = 37; // Credit Vib Rib
 48        public const Byte BlockStone = 38;
 49        public const Byte BlockRedStone = 39;
 50
 51		public const Byte Clay = 40;
 52        public const Byte BlockBlueStone = 41;
 53        public const Byte LightGlobe = 42;
 54        public const Byte BlockGreenStone = 43;
 55        public const Byte BlockPinkStone = 44;
 56        public const Byte BlockGold = 45;
 57        public const Byte BlockSilver = 46;
 58        public const Byte BlockCopper = 47;
 59        public const Byte Spikes = 48;
 60        public const Byte CandleBlue = 49;
 61
 62		public const Byte Books = 50;
 63        public const Byte Web = 51;
 64        public const Byte Vines = 52;
 65        public const Byte Sand = 53;
 66        public const Byte Glass = 54;
 67        public const Byte Sign = 55;
 68        public const Byte Obsidian = 56;
 69        public const Byte Ash = 57; // Credit Infinite Monkeys
 70        public const Byte Hellstone = 58; // Credit Vib Rib
 71        public const Byte Mud = 59;
 72
 73		public const Byte UndergroundJungleGrass = 60;
 74        public const Byte UndergroundJunglePlants = 61;
 75        public const Byte UndergroundJungleVines = 62;
 76        public const Byte Sapphire = 63;
 77        public const Byte Ruby = 64;
 78        public const Byte Emerald = 65;
 79        public const Byte Topaz = 66;
 80        public const Byte Amethyst = 67;
 81        public const Byte Diamond = 68;
 82        public const Byte UndergroundJungleThorns = 69; // Credit Dr VideoGames 0031
 83
 84		public const Byte UndergroundMushroomGrass = 70;
 85        public const Byte UndergroundMushroomPlants = 71;
 86        public const Byte UndergroundMushroomTrees = 72;
 87        public const Byte Plants2 = 73;
 88        public const Byte Plants3 = 74;
 89        public const Byte BlockObsidian = 75;
 90        public const Byte BlockHellstone = 76;
 91        public const Byte Hellforge = 77;
 92        public const Byte DecorativePot = 78;
 93        public const Byte Bed = 79;
 94
 95        public const Byte Cactus = 80;
 96        public const Byte Coral = 81;
 97        public const Byte HerbImmature = 82;
 98        public const Byte HerbMature = 83;
 99        public const Byte HerbBlooming = 84;
100        public const Byte Tombstone = 85;
101		public const Byte Loom = 86;
102		public const Byte Piano = 87;
103		public const Byte Dresser = 88;
104		public const Byte Bench = 89;
105
106		public const Byte Bathtub = 90;
107		public const Byte Banner = 91;
108		public const Byte Lamppost = 92;
109		public const Byte Tikitorch = 93;
110		public const Byte Keg = 94;
111		public const Byte ChineseLamp = 95;
112		public const Byte CookingPot = 96;
113		public const Byte Safe = 97;
114		public const Byte SkullCandle = 98;
115		public const Byte Trashcan = 99;
116
117		public const Byte Candleabra = 100;
118		public const Byte Bookcase = 101;
119		public const Byte Throne = 102;
120		public const Byte Plate = 103;
121		public const Byte Clock = 104;
122		public const Byte Statue = 105;
123		public const Byte Sawmill = 106;
124
125        public const Byte Unknown = 228;
126
127        // Additional non-tile types, here to shrink things into a byte.
128		public const Byte Processed = 229;
129
130		public const Byte Water = 230;
131		public const Byte Lava = 231;
132
133		public const Byte BackgroundSky = 232;
134		public const Byte BackgroundDirt = 233;
135		public const Byte BackgroundCave = 234;
136		public const Byte BackgroundHell = 235;
137
138		public const Byte WallStone = 236;
139        public const Byte WallDirt = 237;
140        public const Byte WallEbonstone = 238;
141        public const Byte WallWood = 239;
142        public const Byte WallGreyBrick = 240;
143        public const Byte WallRedBrick = 241;
144        public const Byte WallBlueBrick = 242;
145        public const Byte WallGreenBrick = 243;
146        public const Byte WallPinkBrick = 244;
147        public const Byte WallGoldBrick = 245;
148        public const Byte WallSilverBrick = 246;
149        public const Byte WallCopperBrick = 247;
150        public const Byte WallHellstone = 248;
151		public const Byte WallObsidianBrick = 249;
152		public const Byte WallMud = 250;
153		public const Byte WallDirtSafe = 251;
154		public const Byte WallBlueSafe = 252;
155		public const Byte WallGreenSafe = 253; 
156		public const Byte WallPinkSafe = 254;
157		public const Byte WallObsidian = 255;
158
159		public static String[] typeStrings;
160
161		public static void Initialize()
162		{
163			typeStrings = new String[256];
164
165			typeStrings[TileType.Dirt] = "Dirt";
166			typeStrings[TileType.Stone] = "Stone";
167			typeStrings[TileType.Grass] = "Grass";
168			typeStrings[TileType.Plants] = "Plants";
169			typeStrings[TileType.Torch] = "Torch";
170			typeStrings[TileType.Trees] = "Trees";
171			typeStrings[TileType.Iron] = "Iron";
172			typeStrings[TileType.Copper] = "Copper";
173			typeStrings[TileType.Gold] = "Gold";
174			typeStrings[TileType.Silver] = "Silver";
175
176			typeStrings[TileType.Door] = "Door";
177			typeStrings[TileType.DoorOpen] = "DoorOpen";
178			typeStrings[TileType.Heart] = "Heart";
179			typeStrings[TileType.Bottles] = "Bottles";
180			typeStrings[TileType.Table] = "Table";
181			typeStrings[TileType.Chair] = "Chair";
182			typeStrings[TileType.Anvil] = "Anvil";
183			typeStrings[TileType.Furnace] = "Furnace";
184			typeStrings[TileType.CraftingTable] = "CraftingTable";
185			typeStrings[TileType.WoodenPlatform] = "WoodenPlatform";
186
187			typeStrings[TileType.PlantsDecorative] = "PlantsDecorative";
188			typeStrings[TileType.Chest] = "Chest";
189			typeStrings[TileType.Demonite] = "Demonite";
190			typeStrings[TileType.CorruptionGrass] = "CorruptionGrass";
191			typeStrings[TileType.CorruptionPlants] = "CorruptionPlants";
192			typeStrings[TileType.Ebonstone] = "Ebonstone";
193			typeStrings[TileType.Altar] = "Altar";
194			typeStrings[TileType.Sunflower] = "Sunflower";
195			typeStrings[TileType.Pot] = "Pot";
196			typeStrings[TileType.PiggyBank] = "PiggyBank";
197
198			typeStrings[TileType.BlockWood] = "BlockWood";
199			typeStrings[TileType.ShadowOrb] = "ShadowOrb";
200			typeStrings[TileType.CorruptionVines] = "CorruptionVines";
201			typeStrings[TileType.Candle] = "Candle";
202			typeStrings[TileType.ChandlerCopper] = "ChandlerCopper";
203			typeStrings[TileType.ChandlerSilver] = "ChandlerSilver";
204			typeStrings[TileType.ChandlerGold] = "ChandlerGold";
205			typeStrings[TileType.Meteorite] = "Meteorite";
206			typeStrings[TileType.BlockStone] = "BlockStone";
207			typeStrings[TileType.BlockRedStone] = "BlockRedStone";
208
209			typeStrings[TileType.Clay] = "Clay";
210			typeStrings[TileType.BlockBlueStone] = "BlockBlueStone";
211			typeStrings[TileType.LightGlobe] = "LightGlobe";
212			typeStrings[TileType.BlockGreenStone] = "BlockGreenStone";
213			typeStrings[TileType.BlockPinkStone] = "BlockPinkStone";
214			typeStrings[TileType.BlockGold] = "BlockGold";
215			typeStrings[TileType.BlockSilver] = "BlockSilver";
216			typeStrings[TileType.BlockCopper] = "BlockCopper";
217			typeStrings[TileType.Spikes] = "Spikes";
218			typeStrings[TileType.CandleBlue] = "CandleBlue";
219
220			typeStrings[TileType.Books] = "Books";
221			typeStrings[TileType.Web] = "Web";
222			typeStrings[TileType.Vines] = "Vines";
223			typeStrings[TileType.Sand] = "Sand";
224			typeStrings[TileType.Glass] = "Glass";
225			typeStrings[TileType.Sign] = "Sign";
226			typeStrings[TileType.Obsidian] = "Obsidian";
227			typeStrings[TileType.Ash] = "Ash";
228			typeStrings[TileType.Hellstone] = "Hellstone";
229			typeStrings[TileType.Mud] = "Mud";
230
231			typeStrings[TileType.UndergroundJungleGrass] = "UndergroundJungleGrass";
232			typeStrings[TileType.UndergroundJunglePlants] = "UndergroundJunglePlants";
233			typeStrings[TileType.UndergroundJungleVines] = "UndergroundJungleVines";
234			typeStrings[TileType.Sapphire] = "Sapphire";
235			typeStrings[TileType.Ruby] = "Ruby";
236			typeStrings[TileType.Emerald] = "Emerald";
237			typeStrings[TileType.Topaz] = "Topaz";
238			typeStrings[TileType.Amethyst] = "Amethyst";
239			typeStrings[TileType.Diamond] = "Diamond";
240			typeStrings[TileType.UndergroundJungleThorns] = "UndergroundJungleThorns";
241
242			typeStrings[TileType.UndergroundMushroomGrass] = "UndergroundMushroomGrass";
243			typeStrings[TileType.UndergroundMushroomPlants] = "UndergroundMushroomPlants";
244			typeStrings[TileType.UndergroundMushroomTrees] = "UndergroundMushroomTrees";
245			typeStrings[TileType.Plants2] = "Plants2";
246			typeStrings[TileType.Plants3] = "Plants3";
247			typeStrings[TileType.BlockObsidian] = "BlockObsidian";
248			typeStrings[TileType.BlockHellstone] = "BlockHellstone";
249			typeStrings[TileType.Hellforge] = "Hellforge";
250			typeStrings[TileType.DecorativePot] = "DecorativePot";
251			typeStrings[TileType.Bed] = "Bed";
252
253			typeStrings[TileType.Cactus] = "Cactus";
254			typeStrings[TileType.Coral] = "Coral";
255			typeStrings[TileType.HerbImmature] = "HerbImmature";
256			typeStrings[TileType.HerbMature] = "HerbMature";
257			typeStrings[TileType.HerbBlooming] = "HerbBlooming";
258			typeStrings[TileType.Tombstone] = "Tombstone";
259			typeStrings[TileType.Loom] = "Loom";
260			typeStrings[TileType.Piano] = "Piano";
261			typeStrings[TileType.Dresser] = "Dresser";
262			typeStrings[TileType.Bench] = "Bench";
263
264			typeStrings[TileType.Bathtub] = "Bathtub";
265			typeStrings[TileType.Banner] = "Banner";
266			typeStrings[TileType.Lamppost] = "Lamppost";
267			typeStrings[TileType.Tikitorch] = "Tikitorch";
268			typeStrings[TileType.Keg] = "Keg";
269			typeStrings[TileType.ChineseLamp] = "ChineseLamp";
270			typeStrings[TileType.CookingPot] = "CookingPot";
271			typeStrings[TileType.Safe] = "Safe";
272			typeStrings[TileType.SkullCandle] = "SkullCandle";
273			typeStrings[TileType.Trashcan] = "Trashcan";
274
275			typeStrings[TileType.Candleabra] = "Candleabra";
276			typeStrings[TileType.Bookcase] = "Bookcase";
277			typeStrings[TileType.Throne] = "Throne";
278			typeStrings[TileType.Plate] = "Plate";
279			typeStrings[TileType.Clock] = "Clock";
280			typeStrings[TileType.Statue] = "Statue";
281			typeStrings[TileType.Sawmill] = "Sawmill";
282
283			typeStrings[TileType.Unknown] = "Unknown";
284
285			typeStrings[TileType.Processed] = "Processed";
286
287			typeStrings[TileType.Water] = "Water";
288			typeStrings[TileType.Lava] = "Lava";
289
290			typeStrings[TileType.BackgroundSky] = "BackgroundSky";
291			typeStrings[TileType.BackgroundDirt] = "BackgroundDirt";
292			typeStrings[TileType.BackgroundCave] = "BackgroundCave";
293			typeStrings[TileType.BackgroundHell] = "BackgroundHell";
294
295			typeStrings[TileType.WallStone] = "WallStone";
296			typeStrings[TileType.WallDirt] = "WallDirt";
297			typeStrings[TileType.WallEbonstone] = "WallEbonstone";
298			typeStrings[TileType.WallWood] = "WallWood";
299			typeStrings[TileType.WallGreyBrick] = "WallGreyBrick";
300			typeStrings[TileType.WallRedBrick] = "WallRedBrick";
301			typeStrings[TileType.WallBlueBrick] = "WallBlueBrick";
302			typeStrings[TileType.WallGreenBrick] = "WallGreenBrick";
303			typeStrings[TileType.WallPinkBrick] = "WallPinkBrick";
304			typeStrings[TileType.WallGoldBrick] = "WallGoldBrick";
305			typeStrings[TileType.WallSilverBrick] = "WallSilverBrick";
306			typeStrings[TileType.WallCopperBrick] = "WallCopperBrick";
307			typeStrings[TileType.WallHellstone] = "WallHellstone";
308			typeStrings[TileType.WallObsidianBrick] = "WallObsidianBrick";
309			typeStrings[TileType.WallMud] = "WallMud";
310			typeStrings[TileType.WallDirtSafe] = "WallDirtSafe";
311			typeStrings[TileType.WallBlueSafe] = "WallBlueSafe";
312			typeStrings[TileType.WallGreenSafe] = "WallGreenSafe";
313			typeStrings[TileType.WallPinkSafe] = "WallPinkSafe";
314			typeStrings[TileType.WallObsidian] = "WallObsidian";
315		}
316
317    }
318
319}