Пример #1
0
 /// <summary>
 /// Initialize this entity in a GameWorld.
 /// </summary>
 /// <param name="world">World.</param>
 /// <returns>The entity for chaining.</returns>
 public Entity Initialize(GameWorld world)
 {
     World = world;
     Components.ForEach(c => c.Initialize());
     return(this);
 }
Пример #2
0
 /// <summary>
 /// Sets the planet.
 /// </summary>
 /// <param name="planetId">Planet identifier.</param>
 public void SetPlanet(int planetId)
 {
     CurrentInstance = CurrentPlanet = GameWorld.CreatePlanet(this, planetId);
 }
Пример #3
0
 public virtual void DrawWeatherEffects(GameWorld world, SpriteBatch spriteBatch)
 {
 }
Пример #4
0
 public override void Update(GameWorld world, GameTime gameTime)
 {
     base.Update(world, gameTime);
     Time += (float)gameTime.ElapsedGameTime.TotalSeconds * world.TimeScale;
 }
Пример #5
0
 public virtual void Update(GameWorld world, GameTime gameTime)
 {
 }