예제 #1
0
파일: TagCompound.cs 프로젝트: dncep/Woofer
 public void Resolve(TagMaster json)
 {
     foreach (KeyValuePair <string, ITag> property in Properties.ToList())
     {
         if (property.Value is TagCustom)
         {
             Properties[property.Key] = json.ConvertToValue(((TagCustom)property.Value).Value);
         }
         if (Properties[property.Key] is TagCompound)
         {
             ((TagCompound)Properties[property.Key]).Resolve(json);
         }
         if (Properties[property.Key] is TagList)
         {
             ((TagList)Properties[property.Key]).Resolve(json);
         }
     }
 }
예제 #2
0
 public void Resolve(TagMaster json)
 {
     for (int i = 0; i < Content.Count; i++)
     {
         ITag tag = Content[i];
         if (tag is TagCustom)
         {
             Content[i] = tag = json.ConvertToValue(((TagCustom)tag).Value);
         }
         if (tag is TagCompound)
         {
             ((TagCompound)tag).Resolve(json);
         }
         if (tag is TagList)
         {
             ((TagList)tag).Resolve(json);
         }
     }
 }