SendPacket() public static method

public static SendPacket ( IPoint3D origin, Server.Map map, Packet p ) : void
origin IPoint3D
map Server.Map
p Packet
return void
Ejemplo n.º 1
0
 public static void SendTargetEffect(IEntity target, int itemID, int speed, int duration, int hue, int renderMode)
 {
     if ((target is Mobile))
     {
         ((Mobile)target).ProcessDelta();
     }
     Effects.SendPacket(target.Location, target.Map, new TargetEffect(target, itemID, speed, duration, hue, renderMode));
 }
Ejemplo n.º 2
0
 public static void SendMovingEffect(IEntity from, IEntity to, int itemID, int speed, int duration, bool fixedDirection, bool explodes, int hue, int renderMode)
 {
     if ((from is Mobile))
     {
         ((Mobile)from).ProcessDelta();
     }
     if ((to is Mobile))
     {
         ((Mobile)to).ProcessDelta();
     }
     Effects.SendPacket(from.Location, from.Map, new MovingEffect(from, to, itemID, speed, duration, fixedDirection, explodes, hue, renderMode));
 }
Ejemplo n.º 3
0
 public static void SendLocationEffect(IPoint3D p, Map map, int itemID, int duration, int speed, int hue, int renderMode)
 {
     Effects.SendPacket(p, map, new LocationEffect(p, itemID, speed, duration, hue, renderMode));
 }