Exemple #1
0
 public void Read(sFile file)
 {
     if (file.name.ToUpper().EndsWith(".ANCL"))
     {
         ANCL ancl = new ANCL(file.path, file.id, file.name);
         pluginHost.Set_Palette(ancl);
     }
     else if (file.name.ToUpper().EndsWith(".ANCG"))
     {
         ANCG ancg = new ANCG(file.path, file.id, file.name);
         pluginHost.Set_Image(ancg);
     }
     else if (file.name.ToUpper().EndsWith(".ANSC"))
     {
         ANSC ansc = new ANSC(file.path, file.id, file.name);
         pluginHost.Set_Map(ansc);
     }
     else if (file.name.ToUpper().EndsWith(".ATEX"))
     {
         ATEX atex = new ATEX(file.path, file.id, file.name);
         pluginHost.Set_Image(atex);
     }
 }
Exemple #2
0
 public void Read(sFile file)
 {
     if (file.name.ToUpper().EndsWith(".ANCL"))
     {
         ANCL ancl = new ANCL(file.path, file.id, file.name);
         pluginHost.Set_Palette(ancl);
     }
     else if (file.name.ToUpper().EndsWith(".ANCG"))
     {
         ANCG ancg = new ANCG(file.path, file.id, file.name);
         pluginHost.Set_Image(ancg);
     }
     else if (file.name.ToUpper().EndsWith(".ANSC"))
     {
         ANSC ansc = new ANSC(file.path, file.id, file.name);
         pluginHost.Set_Map(ansc);
     }
     else if (file.name.ToUpper().EndsWith(".ATEX"))
     {
         ATEX atex = new ATEX(file.path, file.id, file.name);
         pluginHost.Set_Image(atex);
     }
 }