Esempio n. 1
0
 public SpriteCompositionHelper(SimpleMinion minion, Rectangle bounds = default)
 {
     if (Main.dedServ)
     {
         return;
     }
     this.minion  = minion;
     this.bounds  = bounds == default ? DefaultBounds : bounds;
     renderTarget = new RenderTarget2D(
         Main.graphics.GraphicsDevice,
         this.bounds.Width,
         this.bounds.Height,
         false,
         SurfaceFormat.Color,
         DepthFormat.None,
         0,
         RenderTargetUsage.PreserveContents);
 }
 public HoverShooterHelper(SimpleMinion minion, int?firedProjectileType)
 {
     this.minion            = minion;
     this.firedProjectileId = firedProjectileType;
 }
 public HeadCirclingHelper(SimpleMinion minion)
 {
     this.minion = minion;
 }