PageRenderTime 49ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 1ms

/WorldView/Structures/TileType.cs

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