/// <summary> /// Builds a region list from the regions specified in the provided frame XML node /// </summary> /// <param name="frameElement"> /// XML node for the frame whose regions wille be processed /// </param> /// <param name="bitmaps"> /// Bitmap lookup table used to associate a region's bitmap id to the real bitmap /// </param> /// <returns> /// A list of the regions that have been extracted from the frame XML node /// </returns> public static Frame.Region[] Build( XElement frameElement, IDictionary<string, Texture2D> bitmaps ) { RegionListBuilder builder = new RegionListBuilder(); builder.retrieveBorderSizes(frameElement); return builder.createAndPlaceRegions(frameElement, bitmaps); }
/// <summary> /// Builds a region list from the regions specified in the provided frame XML node /// </summary> /// <param name="frameNode"> /// XML node for the frame whose regions wille be processed /// </param> /// <param name="bitmaps"> /// Bitmap lookup table used to associate a region's bitmap id to the real bitmap /// </param> /// <returns> /// A list of the regions that have been extracted from the frame XML node /// </returns> public static Frame.Region[] Build( XmlNode frameNode, IDictionary<string, Texture2D> bitmaps ) { RegionListBuilder builder = new RegionListBuilder(frameNode); builder.retrieveBorderSizes(); return builder.createAndPlaceRegions(bitmaps); }
/// <summary> /// Builds a region list from the regions specified in the provided frame XML node /// </summary> /// <param name="frameElement"> /// XML node for the frame whose regions wille be processed /// </param> /// <param name="bitmaps"> /// Bitmap lookup table used to associate a region's bitmap id to the real bitmap /// </param> /// <returns> /// A list of the regions that have been extracted from the frame XML node /// </returns> public static Frame.Region[] Build( XElement frameElement, IDictionary <string, Texture2D> bitmaps ) { RegionListBuilder builder = new RegionListBuilder(); builder.retrieveBorderSizes(frameElement); return(builder.createAndPlaceRegions(frameElement, bitmaps)); }
/// <summary> /// Builds a region list from the regions specified in the provided frame XML node /// </summary> /// <param name="frameNode"> /// XML node for the frame whose regions wille be processed /// </param> /// <param name="bitmaps"> /// Bitmap lookup table used to associate a region's bitmap id to the real bitmap /// </param> /// <returns> /// A list of the regions that have been extracted from the frame XML node /// </returns> public static Frame.Region[] Build( XmlNode frameNode, IDictionary <string, Texture2D> bitmaps ) { RegionListBuilder builder = new RegionListBuilder(frameNode); builder.retrieveBorderSizes(); return(builder.createAndPlaceRegions(bitmaps)); }