public LivingEntityRepresentation(LivingEntity livingEntity)
 {
     this.livingEntity = livingEntity;
     blink = false;
     blinkTimer = new Timer();
     blinkColor = new Color(255, 255, 255, 0);
     randomShake = new Random();
     shakePositionOffset = Vector2.Zero;
     shakeTimer = new Timer();
 }
Пример #2
0
        public void SpawnLivingEntities()
        {
            foreach (Player player in this.Players)
            {
                player.Spawn();
            }

            foreach (Entity entity in entities)
            {
                LivingEntity livingEntity = entity as LivingEntity;
                if (livingEntity != null)
                {
                    livingEntity.Spawn();
                }
            }
        }