fix: comment out world gen test framework (remember to do this for every build)

This commit is contained in:
Abdulmujeeb Raji 2024-11-13 12:21:03 +00:00
parent 775781506d
commit d23e58da89
Signed by untrusted user: midnadimple
GPG key ID: EB02C582F8C3962B

View file

@ -1,33 +1,36 @@
// DEBUG WorldGen System for testing //// DEBUG WorldGen System for testing
using Terraria; //using Terraria;
using Terraria.ModLoader; //using Terraria.ModLoader;
using Microsoft.Xna.Framework.Input; //using Microsoft.Xna.Framework.Input;
using Terraria.ID; //using Terraria.ID;
using Microsoft.Xna.Framework; //using Microsoft.Xna.Framework;
using Terraria.GameContent.Generation; //using Terraria.GameContent.Generation;
using continuity.Content.Tiles; //using continuity.Content.Tiles;
#if DEBUG //#if DEBUG
namespace continuity.Utilities //namespace continuity.Utilities
{ //{
public class WorldGenWorld : ModSystem // public class WorldGenWorld : ModSystem
{ // {
public static bool JustPressed(Keys key) { // public static bool JustPressed(Keys key)
return Main.keyState.IsKeyDown(key) && !Main.oldKeyState.IsKeyDown(key); // {
} // return Main.keyState.IsKeyDown(key) && !Main.oldKeyState.IsKeyDown(key);
// }
public override void PostUpdateWorld() { // public override void PostUpdateWorld()
if (JustPressed(Keys.D1)) // {
TestMethod((int)Main.MouseWorld.X / 16, (int)Main.MouseWorld.Y / 16); // if (JustPressed(Keys.D1))
} // TestMethod((int)Main.MouseWorld.X / 16, (int)Main.MouseWorld.Y / 16);
// }
// implement whatever test code you want here. // // implement whatever test code you want here.
private void TestMethod(int x, int y) { // 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); // {
// Dust.QuickBox(new Vector2(x, y) * 16, new Vector2(x + 1, y + 1) * 16, 2, Color.YellowGreen, null);
// Code to test placed here: // // Code to test placed here:
WorldGen.OreRunner(x, y, 8, 2, (ushort)ModContent.TileType<CoalTile>()); // WorldGen.OreRunner(x, y, 8, 2, (ushort)ModContent.TileType<CoalTile>());
} // }
} // }
} //}
#endif //#endif