示例#1
0
 /// <summary>
 /// Tags represent attributes of an entity (minion, hero, etc). This method converts the built in representation to a human readable debug format.
 /// </summary>
 /// <param name="tagSet"></param>
 /// <returns></returns>
 private static object ExtractTags(TagSet tagSet)
 {
     Dictionary<string, string> result = new Dictionary<string, string>();
     foreach (var pair in tagSet.GetMap())
     {
         string dbg = Tags.DebugTag(pair.Key, pair.Value);
         var dbgs = dbg.Split();
         result.Add(dbgs[0].Replace("tag=", ""), dbgs[1].Replace("value=", ""));
     }
     return result;
 }