1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 07:13:58 -05:00

move IW3 parser to javascript

This commit is contained in:
RaidMax
2019-02-02 20:19:24 -06:00
parent 0860ce6f62
commit 6b051f2252
6 changed files with 61 additions and 66 deletions

View File

@ -71,6 +71,22 @@ namespace SharedLibraryCore.Interfaces
GroupMapping.Add((GroupType)key, value);
}
}
if (mapKey.GetType() == typeof(GroupType) && mapValue.GetType().ToString() == "System.Int32")
{
GroupType k = (GroupType)Enum.Parse(typeof(GroupType), mapKey.ToString());
int v = int.Parse(mapValue.ToString());
if (GroupMapping.ContainsKey(k))
{
GroupMapping[k] = v;
}
else
{
GroupMapping.Add(k, v);
}
}
}
public ParserRegex()