2020-02-23 19:48:16 +00:00
|
|
|
using RecrownedGTK.Types;
|
|
|
|
|
2020-04-18 03:09:13 +00:00
|
|
|
namespace RecrownedGTK.AssetsSystem.Information {
|
2020-02-23 19:48:16 +00:00
|
|
|
public struct TextureMapInfo {
|
|
|
|
public string pathToMap;
|
|
|
|
public MapRegionInfo[] regionInfos;
|
|
|
|
public TextureMapInfo(string pathToMap, params MapRegionInfo[] regionInfos) {
|
|
|
|
this.pathToMap = pathToMap;
|
|
|
|
this.regionInfos = regionInfos;
|
|
|
|
}
|
|
|
|
|
|
|
|
public struct MapRegionInfo {
|
|
|
|
public string name;
|
|
|
|
public NinePatchInfo ninePatchInfo;
|
|
|
|
public int x, y, width, height;
|
|
|
|
public MapRegionInfo(string name, int x, int y, int width, int height, NinePatchInfo ninePatchInfo = default(NinePatchInfo)) {
|
|
|
|
this.name = name;
|
|
|
|
this.ninePatchInfo = ninePatchInfo;
|
|
|
|
this.x = x;
|
|
|
|
this.y = y;
|
|
|
|
this.width = width;
|
|
|
|
this.height = height;
|
|
|
|
}
|
|
|
|
public void SetBounds(int x, int y, int width, int height) {
|
|
|
|
this.x = x;
|
|
|
|
this.y = y;
|
|
|
|
this.width = width;
|
|
|
|
this.height = height;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|