• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Carbon Copy plugin for VS


Commit MetaInfo

修訂c2157c0ab1ba7a61d6e97a39baca0e9dc318bd7e (tree)
時間2020-04-18 08:15:48
作者melchior <melchior@user...>
Commitermelchior

Log Message

Fixed bad refactoring...

Change Summary

差異

--- a/CarbonCopy/ClientCommands/CarbonCopyCommand.cs
+++ b/CarbonCopy/ClientCommands/CarbonCopyCommand.cs
@@ -21,20 +21,15 @@ namespace CarbonCopy
2121 private BlockPos start;
2222 private BlockPos end;
2323 private bool validSelection;
24- private List<BlockPos> markedBlocks;
25- private List<int> colorList;
24+ private List<BlockPos> markedBlocks = new List<BlockPos>( );
25+ private List<int> colorList = new List<int> { ColorUtil.ToRgba(180, 0, 195, 0) };
2626
27- public CarbonCopyCommand( )
28- {
29- this.markedBlocks = new List<BlockPos>( );
30- this.colorList = new List<int> { ColorUtil.ToRgba(180, 0, 195, 0) };
31- }
3227
3328 public CarbonCopyCommand(ICoreClientAPI clientAPI)
34- {
29+ {
3530 this.Command = _name;
3631 this.Syntax = @"mark: start/end/ (x/y/z), save [name], clear; dump {items/blocks}";
37- this.Description = "Export crbon-copies of block selections locally.(as 'mex' file)";
32+ this.Description = "Export carbon-copies of block selections locally.(as json export schematic)";
3833
3934 ClientAPI = clientAPI;
4035 Logger = clientAPI.Logger;
@@ -63,9 +58,7 @@ namespace CarbonCopy
6358 switch (command) {
6459
6560 case "mark":
66-
6761 Process_MarkSubcommand(args);
68-
6962 break;
7063
7164 case "save":
@@ -85,19 +78,19 @@ namespace CarbonCopy
8578 break;
8679
8780 default:
88- ClientAPI.ShowChatMessage("Unrecognised argument...");
81+ ClientAPI.ShowChatMessage($"Unrecognised command: {command}");
8982 break;
9083 }
9184 }
9285 else {
93- ClientAPI.ShowChatMessage("Needs a command: mark/save/clear/dump");
86+ ClientAPI.ShowChatMessage("Needs a command (parameter): mark/save/clear/dump");
9487 }
9588 }
9689
9790 private void Process_MarkSubcommand(CmdArgs args)
9891 {
9992 if (args.Length > 0) {
100- string subCommand = args.PopWord( ).ToLowerInvariant( );
93+ string subCommand = args.PopWord("?").ToLowerInvariant( );
10194
10295
10396 switch (subCommand) {