Exemple #1
0
        void HandlePostUpdate(uint eventType, ScriptVariantMap eventData)
        {
            Object[] args = new Object[1] {
                eventData.GetFloat("timestep")
            };

            foreach (var csinfo in csinfoLookup.Values)
            {
                csinfo.PostUpdate(args);
            }
        }
Exemple #2
0
        void HandlePhysicsPreStep(uint eventType, ScriptVariantMap eventData)
        {
            // TODO: eventData also has a PhysicsWorld pointer, which could be factored in for multiworld support

            Object[] args = new Object[1] {
                eventData.GetFloat("timestep")
            };

            foreach (var csinfo in csinfoLookup.Values)
            {
                csinfo.FixedUpdate(args);
            }
        }
Exemple #3
0
        void HandleUpdate(uint eventType, ScriptVariantMap eventData)
        {
            float time = eventData.GetFloat("timestep");

            ElapsedTime += time;

            #if !ATOMIC_IOS
            deltaTime += time;

            if (deltaTime < 1.0f / 60.0f)
                return;

            deltaTime = 0.0f;

            #endif

            ShipInput.Update();

            if (!paused)
            {
                PlayerStatus.Update();
                EntityManager.Update();
                EnemySpawner.Update();
                ParticleManager.Update();
                Grid.Update();
            }
        }
        void HandleUpdate(uint eventType, ScriptVariantMap eventData)
        {
            Object[] args = new Object[1] { eventData.GetFloat("timestep") };

            foreach (var csinfo in csinfoLookup.Values)
            {
                csinfo.Update(args);
            }
        }