src/Quadtree.cs
/// <summary>You need to call this each frame if you don't use base.Update() in <see cref="Game.Update(GameTime)"/>.</summary>
You need to call this each frame if you don't use base.Update() in .
You need to call this each frame if you don ' t use base . Update () in .
public void Update() {
            if (_updates.HasFlag(Updates.AutoCleanNodes)) {
                _game.Components.Remove(_cleanNodes);
                _cleanNodes.Update(null);
            } else if (_updates.HasFlag(Updates.ManualCleanNodes))
                _cleanNodes.Update(null);
            if (_updates.HasFlag(Updates.AutoExpandTree)) {
                _game.Components.Remove(_expandTree);
                _expandTree.Update(null);
            } else if (_updates.HasFlag(Updates.ManualExpandTree))
                _expandTree.Update(null);
            _updates = Updates.ManualMode;
        }
public void Update ( ) { if ( _updates . HasFlag ( Updates . AutoCleanNodes ) ) { _game . Components . Remove ( _cleanNodes ) ; _cleanNodes . Update ( null ) ; } else if ( _updates . HasFlag ( Updates . ManualCleanNodes ) ) _cleanNodes . Update ( null ) ; if ( _updates . HasFlag ( Updates . AutoExpandTree ) ) { _game . Components . Remove ( _expandTree ) ; _expandTree . Update ( null ) ; } else if ( _updates . HasFlag ( Updates . ManualExpandTree ) ) _expandTree . Update ( null ) ; _updates = Updates . ManualMode ; }
You need to call this each frame if you don't use base.Update() in .
You need to call this each frame if you don ' t use base . Update () in .