Ejemplo n.º 1
0
 private static void ParseFrameAttributes(XElement tile, FrameProperty curTile)
 {
     curTile.ID              = curTile.XMLConvert(curTile.ID, tile.Attribute("num"));
     curTile.Name            = curTile.XMLConvert(curTile.Name, tile.Attribute("name"));
     curTile.ContactDamage   = curTile.XMLConvert(curTile.ContactDamage, tile.Attribute("contactDamage"));
     curTile.Direction       = curTile.XMLConvert(curTile.Direction, tile.Attribute("dir"));
     curTile.IsHouseItem     = curTile.XMLConvert(curTile.IsHouseItem, tile.Attribute("isHouseItem"));
     curTile.IsSolid         = curTile.XMLConvert(curTile.IsSolid, tile.Attribute("isSolid"));
     curTile.IsSolidTop      = curTile.XMLConvert(curTile.IsSolidTop, tile.Attribute("isSolidTop"));
     curTile.LightBrightness = curTile.XMLConvert(curTile.LightBrightness, tile.Attribute("lightBrightness"));
     curTile.Placement       = curTile.XMLConvert(curTile.Placement, tile.Attribute("placement"));
     curTile.Size            = curTile.XMLConvert(curTile.Size, tile.Attribute("size"));
     curTile.UpperLeft       = curTile.XMLConvert(curTile.UpperLeft, tile.Attribute("upperLeft"));
     curTile.Variety         = curTile.XMLConvert(curTile.Variety, tile.Attribute("variety"));
     curTile.XMLConvert(curTile.AttachesTo, tile.Attribute("attachesTo"));
     curTile.XMLConvert(curTile.NoAttach, tile.Attribute("noAttach"));
     curTile.XMLConvert(curTile.CanMorphFrom, tile.Attribute("canMorphFrom"));
 }
Ejemplo n.º 2
0
 private static void ParseFrameAttributes(XElement tile, FrameProperty curTile)
 {
     curTile.ID              = curTile.XMLConvert(curTile.ID,              tile.Attribute("num"));
     curTile.Name            = curTile.XMLConvert(curTile.Name,            tile.Attribute("name"));
     curTile.ContactDamage   = curTile.XMLConvert(curTile.ContactDamage,   tile.Attribute("contactDamage"));
     curTile.Direction       = curTile.XMLConvert(curTile.Direction,       tile.Attribute("dir"));
     curTile.IsHouseItem     = curTile.XMLConvert(curTile.IsHouseItem, 	  tile.Attribute("isHouseItem"));
     curTile.IsSolid         = curTile.XMLConvert(curTile.IsSolid, 		  tile.Attribute("isSolid"));
     curTile.IsSolidTop      = curTile.XMLConvert(curTile.IsSolidTop, 	  tile.Attribute("isSolidTop"));
     curTile.LightBrightness = curTile.XMLConvert(curTile.LightBrightness, tile.Attribute("lightBrightness"));
     curTile.Placement       = curTile.XMLConvert(curTile.Placement,       tile.Attribute("placement"));
     curTile.Size            = curTile.XMLConvert(curTile.Size, 			  tile.Attribute("size"));
     curTile.UpperLeft       = curTile.XMLConvert(curTile.UpperLeft, 	  tile.Attribute("upperLeft"));
     curTile.Variety         = curTile.XMLConvert(curTile.Variety, 		  tile.Attribute("variety"));
                               curTile.XMLConvert(curTile.AttachesTo,	  tile.Attribute("attachesTo"));
                               curTile.XMLConvert(curTile.NoAttach,        tile.Attribute("noAttach"));
                               curTile.XMLConvert(curTile.CanMorphFrom,    tile.Attribute("canMorphFrom"));
 }