From d23e58da896a0956916b90cc6a15f080dbc55236 Mon Sep 17 00:00:00 2001 From: Abdulmujeeb Raji Date: Wed, 13 Nov 2024 12:21:03 +0000 Subject: [PATCH] fix: comment out world gen test framework (remember to do this for every build) --- Utilities/WorldGenWorld.cs | 61 ++++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 29 deletions(-) diff --git a/Utilities/WorldGenWorld.cs b/Utilities/WorldGenWorld.cs index f1afa16..851d1d1 100644 --- a/Utilities/WorldGenWorld.cs +++ b/Utilities/WorldGenWorld.cs @@ -1,33 +1,36 @@ -// DEBUG WorldGen System for testing -using Terraria; -using Terraria.ModLoader; -using Microsoft.Xna.Framework.Input; -using Terraria.ID; -using Microsoft.Xna.Framework; -using Terraria.GameContent.Generation; -using continuity.Content.Tiles; +//// DEBUG WorldGen System for testing +//using Terraria; +//using Terraria.ModLoader; +//using Microsoft.Xna.Framework.Input; +//using Terraria.ID; +//using Microsoft.Xna.Framework; +//using Terraria.GameContent.Generation; +//using continuity.Content.Tiles; -#if DEBUG -namespace continuity.Utilities -{ - public class WorldGenWorld : ModSystem - { - public static bool JustPressed(Keys key) { - return Main.keyState.IsKeyDown(key) && !Main.oldKeyState.IsKeyDown(key); - } +//#if DEBUG +//namespace continuity.Utilities +//{ +// public class WorldGenWorld : ModSystem +// { +// public static bool JustPressed(Keys key) +// { +// return Main.keyState.IsKeyDown(key) && !Main.oldKeyState.IsKeyDown(key); +// } - public override void PostUpdateWorld() { - if (JustPressed(Keys.D1)) - TestMethod((int)Main.MouseWorld.X / 16, (int)Main.MouseWorld.Y / 16); - } +// public override void PostUpdateWorld() +// { +// if (JustPressed(Keys.D1)) +// TestMethod((int)Main.MouseWorld.X / 16, (int)Main.MouseWorld.Y / 16); +// } - // implement whatever test code you want here. - private void TestMethod(int x, int y) { - Dust.QuickBox(new Vector2(x, y) * 16, new Vector2(x + 1, y + 1) * 16, 2, Color.YellowGreen, null); +// // implement whatever test code you want here. +// private void TestMethod(int x, int y) +// { +// Dust.QuickBox(new Vector2(x, y) * 16, new Vector2(x + 1, y + 1) * 16, 2, Color.YellowGreen, null); - // Code to test placed here: - WorldGen.OreRunner(x, y, 8, 2, (ushort)ModContent.TileType()); - } - } -} -#endif +// // Code to test placed here: +// WorldGen.OreRunner(x, y, 8, 2, (ushort)ModContent.TileType()); +// } +// } +//} +//#endif