public static void GenCodes() { string directory = Environment.CurrentDirectory; int index = directory.IndexOf("\\tool\\"); directory = directory.Remove(index); StringBuilder out_folder = new StringBuilder(directory); foreach (XMLEntity entity in GenPrefab_JSON.GetEntities()) { GenEntityCode(entity, out_folder.ToString()); } }
static void Main(string[] args) { Console.WriteLine("Hello GenCodes!"); GenPrefab_JSON.GenCodes(); GenPrefab_CS.GenCodes(); GenPrefab_TS.GenCodes(); //GenProto.GenNList(); Console.WriteLine("End GenCodes!"); Console.ReadLine(); }