Exemple #1
0
        static void Main(string[] args)
        {
            Crosswalk.Message m = SerializationHelper.Deserialize <Crosswalk.Message>("Temp.temp", false, "");
            searchPath = m.Messages[0];

            SerializationHelper.DeleteFile("Temp.temp");

            if (SerializationHelper.FolderExists(m.Messages[0]))
            {
                IEnumerable <string> files = SerializationHelper.GetFiles(m.Messages[0], ".dll");

                if (files.Count() > 0)
                {
                    Console.WriteLine(files.Count() + " Libraries Found.");
                    Console.WriteLine();

                    SearchFiles(files);

                    Console.WriteLine();
                    Console.WriteLine(objects.Objects.Count + " Viable Createable Objects Found.");

                    if (objects.Shaders.Count > 0)
                    {
                        Console.WriteLine(objects.Shaders.Count + " Materials Found.");
                    }

                    Console.WriteLine("< End Search >");
                }
                else
                {
                    Console.WriteLine("No createable objects found in any available directories.");
                }

                Type[] types = new Type[]
                {
                    typeof(EonDictionary <string, string>)
                };

                SerializationHelper.Serialize <ObjectListing>(objects, savePath, types);

                Console.ReadKey();
            }
            else
            {
                SerializationHelper.CreateFolder(searchPath);
                Main(null);
            }
        }