1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-20 17:17:13 +02:00

Remove log messages from the event system and and remove the need for unique signatures in signals.

This commit is contained in:
Sandu Liviu Catalin
2015-11-08 07:47:50 +02:00
parent e1db16d3ec
commit 920d70185f
4 changed files with 104 additions and 117 deletions

View File

@ -1602,9 +1602,6 @@ void BasicEvent::Attach()
case EVT_SCRIPTRELOAD:
_Core->ScriptReload.Connect< BasicEvent, &BasicEvent::ScriptReload >(this);
break;
case EVT_LOGMESSAGE:
_Core->LogMessage.Connect< BasicEvent, &BasicEvent::LogMessage >(this);
break;
default:
LogErr("Attempting to <attach> to an unknown event type: %d", _SCI32(m_Type));
}
@ -1924,9 +1921,6 @@ void BasicEvent::Detach()
case EVT_SCRIPTRELOAD:
_Core->ScriptReload.Disconnect< BasicEvent, &BasicEvent::ScriptReload >(this);
break;
case EVT_LOGMESSAGE:
_Core->LogMessage.Disconnect< BasicEvent, &BasicEvent::LogMessage >(this);
break;
default:
LogErr("Attempting to <dettach> to an unknown event type: %d", _SCI32(m_Type));
}

View File

@ -114,7 +114,6 @@ const SQChar * GetEventName(SQInt32 type)
case EVT_WORLDOPTION: return _SC("World Option");
case EVT_WORLDTOGGLE: return _SC("World Toggle");
case EVT_SCRIPTRELOAD: return _SC("Script Reload");
case EVT_LOGMESSAGE: return _SC("Log Message");
default: return _SC("Unknown");
}