BroadcastPacket() public method

public BroadcastPacket ( wServer.networking.Packet pkt, Player exclude ) : void
pkt wServer.networking.Packet
exclude Player
return void
Ejemplo n.º 1
0
 public void Oryx(World world, string text)
 {
     world.BroadcastPacket(new TextPacket()
     {
         BubbleTime = 0,
         Stars = -1,
         Name = "#Oryx the Mad God",
         Text = text
     }, null);
 }
Ejemplo n.º 2
0
 public void Oryx(World world, string text)
 {
     world.BroadcastPacket(new TextPacket()
     {
         BubbleTime = 0,
         Stars      = -1,
         Name       = "#Oryx the Mad God",
         Text       = text
     }, null);
 }
Ejemplo n.º 3
0
 public void Oryx(World world, string text)
 {
     world.BroadcastPacket(new TextPacket()
     {
         BubbleTime = 0,
         Stars      = -1,
         Name       = "#Oryx the Mad God",
         Text       = text.ToSafeText()
     }, null);
     log.InfoFormat("[{0}({1})] <Oryx the Mad God> {2}", world.Name, world.Id, text);
 }
 public void Oryx(World world, string text)
 {
     world.BroadcastPacket(new TextPacket()
     {
         BubbleTime = 0,
         Stars = -1,
         Name = "#Oryx the Mad God",
         Text = text.ToSafeText()
     }, null);
     logger.InfoFormat("[{0}({1})] <Oryx the Mad God> {2}", world.Name, world.Id, text);
 }
Ejemplo n.º 5
0
 public void Oryx(World world, string text)
 {
     world.BroadcastPacket(new TextPacket()
     {
         BubbleTime = 0,
         Stars      = -1,
         Name       = "#Oryx the Mad God",
         Text       = text
     }, null);
     log.Info($"[{world.Name} ({world.Id})] <Oryx the Mad God> {text}");
 }
Ejemplo n.º 6
0
 public void ChatBot(World world, string text)
 {
     world.BroadcastPacket(new TextPacket
     {
         BubbleTime = 0,
         Stars      = -1,
         Name       = "!Bot",
         Text       = text.ToSafeText()
     }, null);
     log.InfoFormat("[{0}({1})] <HatBot> {2}", world.Name, world.Id, text);
 }
Ejemplo n.º 7
0
 public void Oryx(World world, string text)
 {
     world.BroadcastPacket(new TextPacket
     {
         BubbleTime = 0,
         Stars      = -1,
         Name       = "#Oryx the Mad God",
         Text       = text.ToSafeText()
     }, null);
     if (CheckConfig.IsDebugOn())
     {
         Console.WriteLine("[{0}({1})] <Oryx the Mad God> {2}", world.Name, world.Id, text);
     }
 }
Ejemplo n.º 8
0
        public void Oryx(World world, string text)
        {
            if (string.IsNullOrWhiteSpace(text))
            {
                return;
            }

            world.BroadcastPacket(new Text()
            {
                BubbleTime = 0,
                NumStars   = -1,
                Name       = "#Oryx the Mad God",
                Txt        = text
            }, null, PacketPriority.Low);
        }
Ejemplo n.º 9
0
        public void Oryx(World world, string text)
        {
            if (string.IsNullOrWhiteSpace(text))
            {
                return;
            }

            world.BroadcastPacket(new Text()
            {
                BubbleTime = 0,
                NumStars   = -1,
                Name       = "#Oryx the Mad God",
                Txt        = text
            }, null);
            log.Info("[{0}({1})] <Oryx the Mad God> {2}", world.Name, world.Id, text);
        }