Skip to content
Permalink
Browse files

Remove unused debug /ctest command

  • Loading branch information...
UnknownShadow200 committed Jun 2, 2017
1 parent cce6d96 commit 8dca69ca928e35bb3f891871c4b3a6c372f98491
Showing with 1 addition and 42 deletions.
  1. +0 −41 fCraft/Commands/BuildingCommands.cs
  2. +1 −1 fCraft/MapConversion/MapRaw.cs
@@ -2828,47 +2828,6 @@ private static void DrawImageCallback(Player player, Vector3I[] marks, object ta
player.IsRepeatingSelection = true;
}
}
#endregion
#region cuboid test

static readonly CommandDescriptor Cdctest = new CommandDescriptor
{
Name = "ctest",
Permissions = new[] { Permission.Chat },
Category = CommandCategory.New | CommandCategory.Building,
Help = "Tells you information about our custom texture pack.",
Handler = textureHandler
};

static void textureHandler(Player player, CommandReader cmd)
{
Zone zone = player.World.Map.Zones.Find("ctest");
int X = zone.Bounds.XMin;
int Y = zone.Bounds.YMin;
int Z = zone.Bounds.ZMin;

for (int a = 0; a < zone.Bounds.Width; a++)
{
player.WorldMap.SetBlock(X + a, Y, Z, Block.Stone);
BlockUpdate blockUpdatea = new BlockUpdate(null, new Vector3I(X + a, Y, Z), Block.Stone);
player.WorldMap.QueueUpdate(blockUpdatea);
for (int b = 0; b < zone.Bounds.Length; b++)
{
player.WorldMap.SetBlock(X + a, Y + b, Z, Block.Stone);
BlockUpdate blockUpdateb = new BlockUpdate(null, new Vector3I(X + a, Y + b, Z), Block.Stone);
player.WorldMap.QueueUpdate(blockUpdateb);
for (int c = 0; c < zone.Bounds.Height; c++)
{
player.WorldMap.SetBlock(X + a, Y + b, Z + c, Block.Stone);
BlockUpdate blockUpdatec = new BlockUpdate(null, new Vector3I(X + a, Y + b, Z + c), Block.Stone);
player.WorldMap.QueueUpdate(blockUpdatec);
}
}
}
player.Message("Done.");
return;
}

#endregion
#region snake
private static readonly CommandDescriptor CdSnake = new CommandDescriptor {
@@ -3,7 +3,7 @@
using System.IO;

namespace fCraft.MapConversion {
/// <summary> D3 map conversion implementation, for converting D3 map format into fCraft's default map format. </summary>
/// <summary> Saves the raw blocks of a map to disc, uncompressed. Does not save dimensions. </summary>
public sealed class MapRaw : IMapExporter {

public string ServerName {

0 comments on commit 8dca69c

Please sign in to comment.
You can’t perform that action at this time.