Package com.ngt.jopenmetaverse.shared.protocol

Examples of com.ngt.jopenmetaverse.shared.protocol.ChatFromViewerPacket


  /// <param name="channel">The channel to send the message on, 0 is the public channel. Channels above 0
  /// can be used however only scripts listening on the specified channel will see the message</param>
  /// <param name="type">Denotes the type of message being sent, shout, whisper, etc.</param>
  public void Chat(String message, int channel, ChatType type)
  {
    ChatFromViewerPacket chat = new ChatFromViewerPacket();
    chat.AgentData.AgentID = this.id;
    chat.AgentData.SessionID = Client.self.getSessionID();
    chat.ChatData.Channel = channel;
    chat.ChatData.Message = Utils.stringToBytesWithTrailingNullByte(message);
    chat.ChatData.Type = (byte)type.getIndex();
View Full Code Here

TOP

Related Classes of com.ngt.jopenmetaverse.shared.protocol.ChatFromViewerPacket

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.