NLS Engine  v0.1
The Next Logical Step in game engine design.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines
DLLMain.cpp
Go to the documentation of this file.
00001 
00008 #define __dll__
00009 
00010 // Standard Includes
00011 
00012 // Library Includes
00013 #include <boost/bind.hpp>
00014 #include <windows.h>
00015 
00016 // Local Includes
00017 #include "../sharedbase/MessageRouter.h"
00018 #include "../sharedbase/EventLogger.h"
00019 #include "SoundModule.h"
00020 
00021 // Forward Declarations
00022 class PropertyMap;
00023 class ModuleInterface;
00024 class EntityList;
00025 
00026 int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void*) {
00027   return true;
00028 }
00029 
00030 __declspec(dllexport) ModuleInterface* ModuleFactory(PropertyMap* gprops, MessageRouter* msgrouter, EntityList* emgr = nullptr, EventLogger* elog = nullptr)
00031 {
00032   EventLogger::module = "Simple Sound Engine";
00033   EventLogger::SetEventLogger(elog);
00034   return new Sound::SoundModule(gprops, msgrouter, emgr);
00035 }