• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoawindowspythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdombtronvb.netdirectxarduinopreviewerゲームエンジン

Carbon Copy plugin for VS


Commit MetaInfo

Revision8212f56fb84aafcb3eb5e5edab4caa60afbc2b57 (tree)
Time2019-12-13 08:36:03
Authormelchior <melchior@user...>
Commitermelchior

Log Message

Updated for VS 1.11 series; (modinfo change) - plus better msg

Change Summary

Incremental Difference

--- a/CarbonCopy/CarbonCopy.csproj
+++ b/CarbonCopy/CarbonCopy.csproj
@@ -31,6 +31,12 @@
3131 <ErrorReport>prompt</ErrorReport>
3232 <WarningLevel>4</WarningLevel>
3333 <ConsolePause>false</ConsolePause>
34+ <CustomCommands>
35+ <CustomCommands>
36+ <Command type="AfterBuild" command="7z -tzip a Carboncopy_${ProjectConfig}.zip" workingdir="${TargetDir}" />
37+ <Command type="AfterClean" command="rm -f *.zip" workingdir="${TargetDir}" />
38+ </CustomCommands>
39+ </CustomCommands>
3440 </PropertyGroup>
3541 <ItemGroup>
3642 <Reference Include="System" />
--- a/CarbonCopy/CarbonCopyMod.cs
+++ b/CarbonCopy/CarbonCopyMod.cs
@@ -104,64 +104,66 @@ namespace VCMiscMods
104104
105105 private void Process_MarkSubcommand(CmdArgs args )
106106 {
107- if (args.Length > 0)
108- {
109- string subCommand = args.PopWord( ).ToLowerInvariant();
110-
111-
112- switch (subCommand)
113- {
114- case "start":
115- if (this.start == null) {
116- this.start = ClientAPI.World.Player.Entity.LocalPos.AsBlockPos.Copy( );
117- }
118- BendBlockPosition(this.start, args);
107+ if (args.Length > 0) {
108+ string subCommand = args.PopWord( ).ToLowerInvariant( );
119109
120- ClientAPI.ShowChatMessage(string.Format("Marked start; ({0}).", start));
121- break;
122110
123- case "end":
124- if (this.end == null) {
125- this.end = ClientAPI.World.Player.Entity.LocalPos.AsBlockPos.Copy( );
126- }
127- BendBlockPosition(this.end, args);
111+ switch (subCommand) {
112+ case "start":
113+ if (this.start == null) {
114+ this.start = ClientAPI.World.Player.Entity.LocalPos.AsBlockPos.Copy( );
115+ }
116+ BendBlockPosition(this.start, args);
128117
129- ClientAPI.ShowChatMessage(string.Format("Marked end; ({0}).", end));
130- break;
118+ ClientAPI.ShowChatMessage(string.Format("Marked start; ({0}).", start));
119+ break;
131120
132- default:
133- ClientAPI.ShowChatMessage("Mark: start or end ?");
134- break;
121+ case "end":
122+ if (this.end == null) {
123+ this.end = ClientAPI.World.Player.Entity.LocalPos.AsBlockPos.Copy( );
135124 }
125+ BendBlockPosition(this.end, args);
136126
137- this.validSelection = false;
127+ ClientAPI.ShowChatMessage(string.Format("Marked end; ({0}).", end));
128+ break;
138129
139- if (this.start != null &&
140- this.end != null &&
141- ClientAPI.World.BulkBlockAccessor.IsValidPos(this.start) &&
142- ClientAPI.World.BulkBlockAccessor.IsValidPos(this.end)
143- )
144- {
130+ default:
131+ ClientAPI.ShowChatMessage("Mark: start or end ?");
132+ break;
133+ }
145134
146- //Calc. Vol:
147- var size = start.DistanceTo(end);
135+ this.validSelection = false;
148136
149- if (size > 1) {
137+ if (this.start != null &&
138+ this.end != null &&
139+ ClientAPI.World.BulkBlockAccessor.IsValidPos(this.start) &&
140+ ClientAPI.World.BulkBlockAccessor.IsValidPos(this.end)
141+ ) {
150142
151- this.validSelection = true;
143+ //Calc. Vol:
144+ var size = start.DistanceTo(end);
152145
153- this.markedBlocks.Clear( );
146+ if (size > 1) {
154147
155- ClientAPI.World.BulkBlockAccessor.WalkBlocks(start, end, addToMarked);
148+ this.validSelection = true;
156149
157- ClientAPI.World.HighlightBlocks(ClientAPI.World.Player, _highlightSlot, this.markedBlocks, colorList, EnumHighlightBlocksMode.Absolute, EnumHighlightShape.Arbitrary);
150+ this.markedBlocks.Clear( );
151+
152+ ClientAPI.World.BulkBlockAccessor.WalkBlocks(start, end, addToMarked);
153+
154+ ClientAPI.World.HighlightBlocks(ClientAPI.World.Player, _highlightSlot, this.markedBlocks, colorList, EnumHighlightBlocksMode.Absolute, EnumHighlightShape.Arbitrary);
155+
156+ ClientAPI.ShowChatMessage(string.Format("Marked area: {0:f1}diag = {1} blocks", size, markedBlocks.Count));
157+ }
158+ else {
159+ ClientAPI.ShowChatMessage("Marked area: volume too small"); ;
160+ }
161+ }
162+ }
163+ else {
164+ ClientAPI.ShowChatMessage("Mark: start / end (x,y,z +-1#)");
165+ }
158166
159- ClientAPI.ShowChatMessage(string.Format("Marked area: {0:f1}diag = {1} blocks", size, markedBlocks.Count));
160- } else {
161- ClientAPI.ShowChatMessage("Marked area: volume too small"); ;
162- }
163- }
164- }
165167 }
166168
167169 private void BendBlockPosition(BlockPos position, CmdArgs args)
--- a/CarbonCopy/modinfo.json
+++ b/CarbonCopy/modinfo.json
@@ -3,9 +3,10 @@
33 "name": "Carbon-Copy",
44 "description" : "Export schematics from MP (clientside!)",
55 "authors": ["Melchior"],
6- "version": "0.1.1",
6+ "version": "0.1.2",
7+ "side": "client",
78 "dependencies": {
8- "game": "1.9.9"
9+ "game": "1.11.0"
910 },
1011 "website": "http://nowebsite.nope"
1112 }