Universe.ScriptEngine.VirtualScript.ScriptProtectionModule.TriggerAlert C# (CSharp) Method

TriggerAlert() private method

private TriggerAlert ( string function, LimitDef d, string message, ISceneChildEntity host ) : void
function string
d LimitDef
message string
host ISceneChildEntity
return void
        void TriggerAlert(string function, LimitDef d, string message, ISceneChildEntity host)
        {
            if (d.Alert == LimitAlert.Console || d.Alert == LimitAlert.ConsoleAndInworld)
                MainConsole.Instance.Warn("[Limitor]: " + message);
            if (d.Alert == LimitAlert.Inworld || d.Alert == LimitAlert.ConsoleAndInworld)
            {
                IChatModule chatModule = host.ParentEntity.Scene.RequestModuleInterface<IChatModule>();
                if (chatModule != null)
                    chatModule.SimChat("[Limitor]: " + message, ChatTypeEnum.DebugChannel,
                                       2147483647, host.AbsolutePosition, host.Name, host.UUID, false,
                                       host.ParentEntity.Scene);
            }
        }