public void Update(GameTime gameTime)
        {
            _camera.Update(gameTime);
            SM.Update(gameTime);
            _editor.Update();
            EC.Update();
            _man.Update(gameTime);

            if (InputHelper.IsNewKeyPress(Keys.H))
            {
                // harvest
                foreach (KeyValuePair <int, BaseEntity> keypair in EC.All)
                {
                    Harvestable beh = keypair.Value.GetProperty <Harvestable>();

                    if (beh != null)
                    {
                        beh.Harvest(keypair.Value);
                    }

                    if (keypair.Value.Schematic == EntitySchematics.Tree)
                    {
                        break;
                    }
                }
            }
        }
Esempio n. 2
0
 public static void NetManagerSimulationStepImplPostfix()
 {
     NodeManager.Update();
     SegmentManager.Update();
 }