Exemplo n.º 1
0
 public void SendAnnounce(TextInformationTypeEnum type, short messageId, params object[] parameters)
 {
     ServerBase <WorldServer> .Instance.IOTaskPool.AddMessage(delegate
     {
         this.ForEachCharacter(delegate(Character character)
         {
             character.SendInformationMessage(type, messageId, parameters);
         });
     });
 }
Exemplo n.º 2
0
 public void SendTextInformation(TextInformationTypeEnum type, short id, params object[] parameters)
 {
     Bot.SendToClient(new TextInformationMessage((sbyte)type, id, parameters.Select(entry => entry.ToString()).ToArray()));
 }
Exemplo n.º 3
0
        private void SendTextInformation(TextInformationTypeEnum type, ushort id, params object[] parameters)
        {
            mHost.SendMessage((new TextInformationMessage((sbyte)type, id, parameters.Select(entry => entry.ToString()).ToArray())), Enums.DestinationEnum.CLIENT);

        }
Exemplo n.º 4
0
 public static void SendTextInformationMessage(IPacketReceiver client, TextInformationTypeEnum msgType, short msgId)
 {
     client.Send(new TextInformationMessage((sbyte)msgType, msgId, new string[0]));
 }
Exemplo n.º 5
0
 public static void SendTextInformationMessage(IPacketReceiver client, TextInformationTypeEnum msgType, short msgId,
                                               params object[] arguments)
 {
     client.Send(new TextInformationMessage((sbyte)msgType, msgId, arguments.Select(entry => entry.ToString())));
 }
Exemplo n.º 6
0
 public static void SendTextInformationMessage(IPacketReceiver client, TextInformationTypeEnum msgType, short msgId,
                                               params string[] arguments)
 {
     client.Send(new TextInformationMessage((sbyte)msgType, msgId, arguments));
 }
Exemplo n.º 7
0
 public TextInformationMessage(TextInformationTypeEnum Type, int Id, params string[] Args)
 {
     this.TextType = Type;
     this.Id       = Id;
     this.Args     = Args;
 }
Exemplo n.º 8
0
 public void SendTextInformation(TextInformationTypeEnum type, short id, params object[] parameters)
 {
     Bot.SendToClient(new TextInformationMessage((sbyte)type, id, parameters.Select(entry => entry.ToString()).ToArray()));
 }
Exemplo n.º 9
0
 public void SendAnnounce(TextInformationTypeEnum type, short messageId, params object[] parameters)
 {
     ForEachCharacter(character => character.SendInformationMessage(type, messageId, parameters));
 }
Exemplo n.º 10
0
 public static void SendTextInformationMessage(GameClient client, TextInformationTypeEnum msgType, short msgId, string[] parameters)
 {
     client.Send(new TextInformationMessage((sbyte)msgType, msgId, parameters));
 }