Exemple #1
0
 /// <summary>Construct an instance.</summary>
 /// <param name="patch">The patch to represent.</param>
 public PatchInfo(IPatch patch)
 {
     this.ShortName         = this.GetShortName(patch.ContentPack, patch.LogName);
     this.Type              = patch.Type.ToString();
     this.RawTargetAsset    = patch.RawTargetAsset.Raw;
     this.ParsedTargetAsset = patch.RawTargetAsset;
     this.ParsedConditions  = patch.Conditions;
     this.ContentPack       = patch.ContentPack;
     this.IsLoaded          = true;
     this.MatchesContext    = patch.MatchesContext;
     this.IsApplied         = patch.IsApplied;
     this.TokensUsed        = patch.GetTokensUsed().ToArray();
 }