Exemplo n.º 1
0
 public static void DefineEffect(Player p, EffectConfig effect)
 {
     p.Send(Packet.DefineEffect(
                effect.ID,
                effect.pixelU1,
                effect.pixelV1,
                effect.pixelU2,
                effect.pixelV2,
                effect.tintRed,
                effect.tintGreen,
                effect.tintBlue,
                effect.frameCount,
                effect.particleCount,
                (byte)(effect.pixelSize * 2),                                                        //convert pixel size to world unit size
                effect.sizeVariation,
                effect.spread,
                effect.speed,
                effect.gravity,
                effect.baseLifetime,
                effect.lifetimeVariation,
                effect.expireUponTouchingGround,
                effect.collidesSolid,
                effect.collidesLiquid,
                effect.collidesLeaves,
                effect.fullBright));
 }