private void ModelChat(string message, string fromName, ChatType type, Guid id, Guid ownerid, Vector3f position) { if (OnChat != null) { OnChat(message, fromName, type, id, ownerid, position); } }
private void SLChat(string message, ChatAudibleLevel audible, libsecondlife.ChatType type, ChatSourceType sourcetype, string fromName, LLUUID id, LLUUID ownerid, LLVector3 position) { // This is weird -- we get start/stop typing chats from // other avatars, and we get messages back that we sent. // (Tested on OpenSim r3187) // So we explicitly check for those cases here. if (OnChat != null && (int) type < 4 && id != m_user.Self.AgentID) { Vector3f pos = new Vector3f(position.X, position.Y, position.Z); OnChat(message, fromName, (ChatType) type, id.UUID, ownerid.UUID, pos); } }