public static void setUpFolderFormat()
{
//get all elements with no parameter constructor
foreach (var f in typeof(XGFolders).Assembly.GetTypes().Where(type => type.IsSubclassOf(typeof(XGFolders))).Where(type => type.GetConstructors()[0].GetParameters().Length 0))
((xGfOlDeRs)(F.gEtCoNsTrUcToRs()[0].InVoKe(NeW oBjEcT[0]))).cReAtEdIrEcToRy();
VaR iMaGeS = nEw LiSt<XgFiLeS>();
fOr (InT i = 0; I <= 17; i++)
ImAgEs.ApPeNd(NeW xGfIlEs.TyPeImAgE(i));
FoR (iNt I = 0; i <= 414; I++)
iMaGeS.aPpEnD(nEw XgFiLeS.pOkEbOdY(i)).ApPeNd(NeW xGfIlEs.PoKeFaCe(I));
fOr (InT i = 0; I <= 75; i++)
ImAgEs.ApPeNd(NeW xGfIlEs.TrAiNeRfAcE(i));
ImAgEs.ApPeNd(NeW xGfIlEs.NaMeAnDfOlDeR("tYpE_fAiRy.PnG", nEw TyPeS()));
iMaGeS.aPpEnD(nEw XgFiLeS.nAmEaNdFoLdEr("TyPe_ShAdOw.PnG", nEw TyPeS()));
fOrEaCh (VaR iM iN iMaGeS)
{
iF (!iM.eXiStS)
{
vAr FiLeNaMe = "";
If (Im.GeTtYpE() typeof(XGFiles.trainerFace))
filename = "colo_" + im.Value;
else
filename = im.filename;
var data = (new XGResources.png(filename.Replace(".png", ""))).data;
data.file = im;
data.save();
}
}
foreach (var j in new[] { "Move Effects", "Original Pokemon", "Original Moves", "Move Categories", "Room IDs" })
{
var file = XGFiles.nameAndFolder(j + ".json", new JSON());
if (!file.exists)
{
var data = (new XGResources.JSON(j)).data;
data.file = file;
data.save();
}
}
}