示例#1
0
文件: Skin.cs 项目: shadiwolf/e
 /// <summary>
 /// Update serialised information for the provided target.
 /// </summary>
 /// <param name="targetContainer">The target container to serialise to this skin.</param>
 public void UpdateDrawableTarget(ISkinnableTarget targetContainer)
 {
     DrawableComponentInfo[targetContainer.Target] = targetContainer.CreateSkinnableInfo().ToArray();
 }
示例#2
0
文件: Skin.cs 项目: shadiwolf/e
 /// <summary>
 /// Remove all stored customisations for the provided target.
 /// </summary>
 /// <param name="targetContainer">The target container to reset.</param>
 public void ResetDrawableTarget(ISkinnableTarget targetContainer)
 {
     DrawableComponentInfo.Remove(targetContainer.Target);
 }