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:
@ -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));
|
||||
}
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user