11 public string Name {
get;
private set;}
12 public int Width {
get;
private set;}
13 public int Height {
get;
private set;}
24 Name = (string)xImageLayer.Attribute(
"name");
25 Width = (int)xImageLayer.Attribute(
"width");
26 Height = (int)xImageLayer.Attribute(
"height");
27 Visible = (
bool?)xImageLayer.Attribute(
"visible") ??
true;
28 Opacity = (
double?)xImageLayer.Attribute(
"opacity") ?? 1.0;
int Height
Image layer height in tiles (unused)
int Width
Image layer width in tiles (unused)
double Opacity
Alpha transparency of layer.
PropertyDict Properties
User-defined image layer properties.
bool Visible
True if layer is visible.
TmxImageLayer(XElement xImageLayer, string tmxDir="")
Image layer constructor.
User-defined property list.
TmxImage Image
TMX image reference.