public void Say(string msg, int channel, bool broadcast, MRMChatTypeEnum type) { _obj.Say(msg, channel, broadcast, type); }
public void Say(string msg, int channel, bool broadcast, MRMChatTypeEnum type) { if (!CanEdit()) return; ChatTypeEnum mrmType; switch (type) { case MRMChatTypeEnum.Broadcast: mrmType = ChatTypeEnum.Broadcast; break; case MRMChatTypeEnum.DebugChannel: mrmType = ChatTypeEnum.DebugChannel; break; case MRMChatTypeEnum.Owner: mrmType = ChatTypeEnum.Owner; break; case MRMChatTypeEnum.Region: mrmType = ChatTypeEnum.Region; break; case MRMChatTypeEnum.Say: mrmType = ChatTypeEnum.Say; break; case MRMChatTypeEnum.Whisper: mrmType = ChatTypeEnum.Whisper; break; default: mrmType = ChatTypeEnum.Say; break; } SceneObjectPart sop = GetSOP(); if (broadcast) m_rootScene.SimChatBroadcast(Utils.StringToBytes(msg), mrmType, channel, sop.AbsolutePosition, sop.Name, sop.UUID, false); else m_rootScene.SimChat(Utils.StringToBytes(msg), mrmType, channel, sop.AbsolutePosition, sop.Name, sop.UUID, false); }