Пример #1
0
        public static int TickUpdate()
        {
            tickCount++;

            //Operations need to take place in this order
            //1) Entity Queue: Loop through addition queue
            EntityGraph.ProcessNewEntityQueue();
            //2) Entity Graph: Loop objects for transformations
            EntityGraph.ProcessTransformations();
            //3) Entity Messages: Loop through messages to apply effects
            //4) Entity Queue: Loop through removal queue
            EntityGraph.ProcessOldEntityQueue();
            //5) Process Input
            Control.ProcessInput();

            return(tickCount);
        }