• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

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

Automap (client) [VS plugin mod]


Commit MetaInfo

修訂4de88b68255f8562282cef29101fbfff34646c38 (tree)
時間2020-03-02 10:37:12
作者melchior <melchior@user...>
Commitermelchior

Log Message

Pre-PR5; Minor changes to Rock-map data

Change Summary

差異

--- a/Automap/Subsystems/AutomapSystem.cs
+++ b/Automap/Subsystems/AutomapSystem.cs
@@ -398,8 +398,9 @@ namespace Automap
398398 jsonWriter.WriteStartConstructor("Map");
399399 jsonWriter.WriteStartArray( );
400400 foreach (var rockEntry in shard.RockRatio) {
401+ var rockBlock = ClientAPI.World.GetBlock(rockEntry.Key);
401402 jsonWriter.WriteStartArray( );
402- jsonWriter.WriteValue(rockEntry.Key);//BlockID
403+ jsonWriter.WriteValue(rockBlock.Code.Path);
403404 jsonWriter.WriteValue(rockEntry.Value);//Total per chunk-column
404405 jsonWriter.WriteEndArray( );
405406 }
@@ -470,7 +471,7 @@ namespace Automap
470471 jsonWriter.WriteComment("============= BlockID's for Rockmap / Rock-ratios ===============");
471472 jsonWriter.WriteWhitespace("\n");
472473
473- jsonWriter.WriteRaw("var rock_Lookup =");
474+ jsonWriter.WriteRaw("ViewFrame.chunks.rock_Lookup =");
474475 jsonWriter.WriteStartConstructor("Map");
475476 jsonWriter.WriteStartArray( );//An array of... 2-component arrays
476477
@@ -478,7 +479,7 @@ namespace Automap
478479 var block = ClientAPI.World.GetBlock(entry.Key);
479480
480481 jsonWriter.WriteStartArray( );
481- jsonWriter.WriteValue(entry.Key);//BlockID
482+ jsonWriter.WriteValue(block.Code.Path);
482483
483484 jsonWriter.WriteStartObject( );
484485 jsonWriter.WritePropertyName("assetCode");