Automap (client) [VS plugin mod]
修訂 | 4de88b68255f8562282cef29101fbfff34646c38 (tree) |
---|---|
時間 | 2020-03-02 10:37:12 |
作者 | melchior <melchior@user...> |
Commiter | melchior |
Pre-PR5; Minor changes to Rock-map data
@@ -398,8 +398,9 @@ namespace Automap | ||
398 | 398 | jsonWriter.WriteStartConstructor("Map"); |
399 | 399 | jsonWriter.WriteStartArray( ); |
400 | 400 | foreach (var rockEntry in shard.RockRatio) { |
401 | + var rockBlock = ClientAPI.World.GetBlock(rockEntry.Key); | |
401 | 402 | jsonWriter.WriteStartArray( ); |
402 | - jsonWriter.WriteValue(rockEntry.Key);//BlockID | |
403 | + jsonWriter.WriteValue(rockBlock.Code.Path); | |
403 | 404 | jsonWriter.WriteValue(rockEntry.Value);//Total per chunk-column |
404 | 405 | jsonWriter.WriteEndArray( ); |
405 | 406 | } |
@@ -470,7 +471,7 @@ namespace Automap | ||
470 | 471 | jsonWriter.WriteComment("============= BlockID's for Rockmap / Rock-ratios ==============="); |
471 | 472 | jsonWriter.WriteWhitespace("\n"); |
472 | 473 | |
473 | - jsonWriter.WriteRaw("var rock_Lookup ="); | |
474 | + jsonWriter.WriteRaw("ViewFrame.chunks.rock_Lookup ="); | |
474 | 475 | jsonWriter.WriteStartConstructor("Map"); |
475 | 476 | jsonWriter.WriteStartArray( );//An array of... 2-component arrays |
476 | 477 |
@@ -478,7 +479,7 @@ namespace Automap | ||
478 | 479 | var block = ClientAPI.World.GetBlock(entry.Key); |
479 | 480 | |
480 | 481 | jsonWriter.WriteStartArray( ); |
481 | - jsonWriter.WriteValue(entry.Key);//BlockID | |
482 | + jsonWriter.WriteValue(block.Code.Path); | |
482 | 483 | |
483 | 484 | jsonWriter.WriteStartObject( ); |
484 | 485 | jsonWriter.WritePropertyName("assetCode"); |