示例#1
0
 protected override NinepatchLayer Load(IniKeyCollection iniData, LayerHandlerContext context)
 {
     return(new NinepatchLayer
     {
         Top = iniData.GetByte("top", 0),
         Bottom = iniData.GetByte("bottom", 0),
         Left = iniData.GetByte("left", 0),
         Right = iniData.GetByte("right", 0)
     });
 }
示例#2
0
 protected override TileLayer Load(IniKeyCollection iniData, LayerHandlerContext context)
 {
     return(new TileLayer
     {
         ImageData = context.LoadExternalFile(ImageFileKey),
         Type = iniData.GetChar("type"),
         Id = iniData.GetByte("id"),
         Weight = iniData.GetUInt16("weight", 0)
     });
 }