Renamed some connections (still does not work)

This commit is contained in:
AbdulmanovAI
2025-10-24 16:23:11 +04:00
parent fb21034c0e
commit ed321a375f
20 changed files with 107 additions and 90 deletions

View File

@@ -20,10 +20,23 @@ namespace _2DGAMELIB
foreach (var key in obj.Keys)
{
var newKey = KeyMap.TryGetValue(key, out var mapped) ? mapped : key;
var newDifs = obj.Difss[key];
var newTag = KeyMap.TryGetValue(obj.Difss[key].Tag, out var mappedTag) ? mappedTag : obj.Difss[key].Tag;
newDifs.Tag = newTag;
for (var i = 0; i < newDifs.CountX; i++)
{
var newDifTag = KeyMap.TryGetValue(newDifs[i].Tag, out var mappedDifTag) ? mappedDifTag : newDifs[i].Tag;
newDifs[i].Tag = newDifTag;
}
newDict.Add(newKey, newDifs);
newDict.Add(newKey, obj.Difss[key]);
}
var temp = newDict["Torso"];
obj.Difss = newDict;
}
}