예제 #1
0
파일: Program.cs 프로젝트: FSofTlpz/GmTool
        static void Main(string[] args)
        {
            Options opt = new Options();

            try {
                Assembly a = Assembly.GetExecutingAssembly();
                Console.WriteLine(
                    ((AssemblyProductAttribute)(Attribute.GetCustomAttribute(a, typeof(AssemblyProductAttribute)))).Product + ", Version vom " +
                    ((AssemblyInformationalVersionAttribute)(Attribute.GetCustomAttribute(a, typeof(AssemblyInformationalVersionAttribute)))).InformationalVersion + ", " +
                    ((AssemblyCopyrightAttribute)(Attribute.GetCustomAttribute(a, typeof(AssemblyCopyrightAttribute)))).Copyright
                    );
                Console.WriteLine("   Clipper Library 6.4.0 von Angus Johnson (http://sourceforge.net/projects/polyclipping)");
                Console.WriteLine(GarminCore.Garmin.DllTitle());
                Console.WriteLine();

                opt.Evaluate(args);
            } catch (Exception ex) {
                Console.Error.WriteLine("Fehler beim Ermitteln der Programmoptionen: " + ex.Message);
                opt = null;
            }

            if (opt != null)
            {
                TheJob job = new TheJob();
                job.Run(opt);
            }
        }
예제 #2
0
    protected override JobHandle OnUpdate(JobHandle inputDependencies)
    {
        var moveUpType = GetArchetypeChunkComponentType <MoveUp_Component>(true);
        var iPosType   = GetArchetypeChunkComponentType <InitialPosition>(true);
        var transType  = GetArchetypeChunkComponentType <Translation>();

        var job = new TheJob
        {
            time            = Time.time,
            MoveUpType      = moveUpType,
            InitialPosType  = iPosType,
            TranslationType = transType
        };

        return(job.Schedule(m_Group, inputDependencies));
    }