1 #include "ModuleLink.h"
7 ModuleLink::ModuleLink(IModuleKind type
, IModule
* module
, IProxy
* proxy
, Plugin
* plugin
) :
15 case ChatModule
: _typestr
= "Chat"; break;
16 case RealmModule
: _typestr
= "Realm"; break;
17 case GameModule
: _typestr
= "Game"; break;
20 Log
.Write("Loading \"%s\" into %s\n\n", _plugin
->GetTitle(), _typestr
);
23 void ModuleLink::Delete()
25 Log
.Write("Removing \"%s\" from %s\n\n", _plugin
->GetTitle(), _typestr
);
31 __except(_plugin
->ExceptionHandler(GetExceptionInformation(), "IModule->Delete"))
38 void ModuleLink::OnRelayDataToServer(IPacket
* packet
, const IModule
* owner
)
42 _module
->OnRelayDataToServer(packet
, owner
);
44 __except(_plugin
->ExceptionHandler(GetExceptionInformation(), "IModule->OnRelayDataToServer"))
49 void ModuleLink::OnRelayDataToClient(IPacket
* packet
, const IModule
* owner
)
53 _module
->OnRelayDataToClient(packet
, owner
);
55 __except(_plugin
->ExceptionHandler(GetExceptionInformation(), "IModule->OnRelayDataToClient"))
60 void ModuleLink::Update()
66 __except(_plugin
->ExceptionHandler(GetExceptionInformation(), "IModule->Update"))