Broadcast() public method

public Broadcast ( Packet packet, List sectors, bool toself = false ) : void
packet Zepheus.FiestaLib.Networking.Packet
sectors List
toself bool
return void
Esempio n. 1
0
 private void Anim(ZoneCharacter character, params string[] param)
 {
     byte animid = param.Length >= 2 ? byte.Parse(param[1]) : (byte)50;
     using (var broad = Handler8.Animation(character, animid))
     {
         character.Broadcast(broad, true);
     }
 }
Esempio n. 2
0
 public static void SendNormalChat(ZoneCharacter character, string chat, byte color = 0x2a)
 {
     using (var packet = new Packet(SH8Type.ChatNormal))
     {
         packet.WriteUShort(character.MapObjectID);
         packet.WriteByte((byte)chat.Length);
         packet.WriteByte(color);
         packet.WriteString(chat, chat.Length);
         character.Broadcast(packet, true);
     }
 }