mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2026-11-05 15:11:59 +08:00
Update all resources to 5.8
This commit is contained in:
1 parent
e201281c36
commit
1b18a3a7ca
56 files changed
+19032
-2293
No files matched your search
@@ -51,13 +51,26 @@ namespace GrasscutterTools.Game
|
||||
using (var reader = new JsonTextReader(sr))
|
||||
{
|
||||
ManualTextMap = new Dictionary<string, string>();
|
||||
string textMapId = null, textMapContextHash = null;
|
||||
while (reader.Read())
|
||||
{
|
||||
if (reader.TokenType == JsonToken.PropertyName && ((string)reader.Value == "TextMapId" || (string)reader.Value == "textMapId"))
|
||||
|
||||
|
||||
if (reader.TokenType == JsonToken.PropertyName && ((string)reader.Value == "textMapId" || (string)reader.Value == "TextMapId"))
|
||||
{
|
||||
var textMapId = reader.ReadAsString();
|
||||
reader.Read();
|
||||
ManualTextMap.Add(reader.ReadAsString(), textMapId);
|
||||
textMapId = reader.ReadAsString();
|
||||
}
|
||||
|
||||
if (reader.TokenType == JsonToken.PropertyName && ((string)reader.Value == "textMapContentTextMapHash" || (string)reader.Value == "TextMapContentTextMapHash"))
|
||||
{
|
||||
textMapContextHash = reader.ReadAsString();
|
||||
}
|
||||
|
||||
if (textMapId != null && textMapContextHash != null)
|
||||
{
|
||||
ManualTextMap.Add(textMapContextHash, textMapId);
|
||||
textMapId = null;
|
||||
textMapContextHash = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user