Exemplo n.º 1
0
 public SocialNPC(AnimatedSprite sprite, Vector2 position, int facingDir, string name, LocalizedContentManager content = null)
     : base(sprite, position, 2, name)
 {
     this.faceDirection(facingDir);
     this.DefaultPosition        = position;
     this.defaultFacingDirection = facingDir;
     this.lastCrossroad          = new Microsoft.Xna.Framework.Rectangle((int)position.X, (int)position.Y + 64, 64, 64);
     if (content == null)
     {
         return;
     }
     try
     {
         this.Portrait = content.Load <Texture2D>("Portraits\\" + name);
     }
     catch (Exception ex)
     {
     }
 }