fCraft.DrawCommands.Fill2DConfirmCallback C# (CSharp) Method

Fill2DConfirmCallback() static private method

static private Fill2DConfirmCallback ( [ player, [ tag, bool fromConsole ) : void
player [
tag [
fromConsole bool
return void
        static void Fill2DConfirmCallback([NotNull] Player player, [NotNull] object tag, bool fromConsole) {
            if (player == null) throw new ArgumentNullException("player");
            if (tag == null) throw new ArgumentNullException("tag");
            Fill2DDrawOperation op = (Fill2DDrawOperation)tag;
            int maxDim = Math.Max(op.Bounds.Width, Math.Max(op.Bounds.Length, op.Bounds.Height));
            int otherDim = op.Bounds.Volume/maxDim;
            player.Message("{0}: Filling in a {1}x{2} area...", op.Description, maxDim, otherDim);
            op.Begin();
        }