extern "C"  __declspec(dllexport) void DllStartPlugin(NFIPluginManager* pm)
{
    pPluginManager = pm;

    CREATE_PLUGIN(pm, NFDataBaseNet_ClientPlugin, pPlugin)

};

extern "C" __declspec(dllexport) void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, pPlugin)
};

//////////////////////////////////////////////////////////////////////////

const int NFDataBaseNet_ClientPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFDataBaseNet_ClientPlugin::GetPluginName()
{
    GET_PLUGIN_NAME(NFDataBaseNet_ClientPlugin)
}

void NFDataBaseNet_ClientPlugin::Install()
{
    SetConsoleTitle("NFDataBaseServer");

    REGISTER_MODULE(pPluginManager, "NFCDataBaseNet_ClientModule", NFCDataBaseNet_ClientModule)
}
Пример #2
0
NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{
#if NF_PLATFORM == NF_PLATFORM_WIN
    SetConsoleTitle("Tutorial5");
#endif
    CREATE_PLUGIN(pm, Tutorial5Plugin)

};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, Tutorial5Plugin)
};

#endif
//////////////////////////////////////////////////////////////////////////

const int Tutorial5Plugin::GetPluginVersion()
{
    return 0;
}

const std::string Tutorial5Plugin::GetPluginName()
{
    return GET_CLASS_NAME(Tutorial5Plugin)
}

void Tutorial5Plugin::Install()
{

	REGISTER_MODULE(pPluginManager, HelloWorld5Module, HelloWorld5Module)

	REGISTER_COMPONENT(pPluginManager, NFCTestComponent)
}

void Tutorial5Plugin::Uninstall()
{
	UNREGISTER_COMPONENT(pPluginManager, NFCTestComponent)

	UNREGISTER_MODULE(pPluginManager, HelloWorld5Module, HelloWorld5Module)
}
NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{
#if NF_PLATFORM == NF_PLATFORM_WIN
	SetConsoleTitle("NFMasterServer");
#endif

    CREATE_PLUGIN(pm, NFMasterServerPlugin)

	//std::cout << "DllStartPlugin::thread id=" << GetCurrentThreadId() << std::endl;
};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFMasterServerPlugin)
};

#endif
//////////////////////////////////////////////////////////////////////////

const int NFMasterServerPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFMasterServerPlugin::GetPluginName()
{
    return GET_CLASS_NAME(NFMasterServerPlugin)
}

void NFMasterServerPlugin::Install()
{
    REGISTER_MODULE(pPluginManager, NFCMasterModule)


}

void NFMasterServerPlugin::Uninstall()
{
    UNREGISTER_MODULE(pPluginManager, NFCMasterModule)
}
Пример #4
0
NF_EXPORT void DllStartPlugin( NFIPluginManager* pm )
{
#if NF_PLATFORM == NF_PLATFORM_WIN
	SetConsoleTitle( "NFSLG" );
#endif
    CREATE_PLUGIN( pm, NFSLGPlugin )

};

NF_EXPORT void DllStopPlugin( NFIPluginManager* pm )
{
    DESTROY_PLUGIN( pm, NFSLGPlugin )
};

#endif
//////////////////////////////////////////////////////////////////////////

const int NFSLGPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFSLGPlugin::GetPluginName()
{
    return GET_CLASS_NAME( NFSLGPlugin )
}

void NFSLGPlugin::Install()
{
	REGISTER_MODULE( pPluginManager, NFCSLGModule )
	REGISTER_MODULE( pPluginManager, NFCSLGBuildingModule )
	REGISTER_MODULE( pPluginManager, NFCSLGShopModule )
}

void NFSLGPlugin::Uninstall()
{
	UNREGISTER_MODULE( pPluginManager, NFCSLGShopModule )
	UNREGISTER_MODULE( pPluginManager, NFCSLGBuildingModule )
    UNREGISTER_MODULE( pPluginManager, NFCSLGModule )
}
Пример #5
0
NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{
#if NF_PLATFORM == NF_PLATFORM_WIN
    SetConsoleTitle("Tutorial6");
#endif
    CREATE_PLUGIN(pm, Tutorial6Plugin)

};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, Tutorial6Plugin)
};

#endif
//////////////////////////////////////////////////////////////////////////

const int Tutorial6Plugin::GetPluginVersion()
{
    return 0;
}

const std::string Tutorial6Plugin::GetPluginName()
{
    GET_PLUGIN_NAME(Tutorial6Plugin)
}

void Tutorial6Plugin::Install()
{

    REGISTER_MODULE(pPluginManager, HelloWorld6Module)

}

void Tutorial6Plugin::Uninstall()
{
    UNREGISTER_MODULE(pPluginManager, HelloWorld6Module)
}
Пример #6
0
NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{
#if NF_PLATFORM == NF_PLATFORM_WIN
	SetConsoleTitle("NFLoginServer");
#endif
    CREATE_PLUGIN(pm, NFLoginLogicPlugin)

};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFLoginLogicPlugin)
};

#endif
//////////////////////////////////////////////////////////////////////////

const int NFLoginLogicPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFLoginLogicPlugin::GetPluginName()
{
    GET_PLUGIN_NAME(NFLoginLogicPlugin)
}

void NFLoginLogicPlugin::Install()
{

    REGISTER_MODULE(pPluginManager, NFCLoginLogicModule)

}

void NFLoginLogicPlugin::Uninstall()
{
    UNREGISTER_MODULE(pPluginManager, NFCLoginLogicModule)
}
Пример #7
0
   limitations under the License.
*/

#include "NFLogPlugin.h"
#include "NFLogModule.h"

#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{
    CREATE_PLUGIN(pm, NFLogPlugin)
};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFLogPlugin)
};

#endif

//////////////////////////////////////////////////////////////////////////

const int NFLogPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFLogPlugin::GetPluginName()
{
	return GET_CLASS_NAME(NFLogPlugin);
}
Пример #8
0
#include "Tutorial1.h"
#include "HelloWorld1.h"

#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{

    CREATE_PLUGIN(pm, Tutorial1)

};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, Tutorial1)
};

#endif
//////////////////////////////////////////////////////////////////////////

const int Tutorial1::GetPluginVersion()
{
    return 0;
}

const std::string Tutorial1::GetPluginName()
{
    return GET_CLASS_NAME(Tutorial1);
}

void Tutorial1::Install()
#include "NFWorldNet_ServerPlugin.h"
#include "NFCWorldNet_ServerModule.h"

//
//
#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{
    CREATE_PLUGIN(pm, NFWorldNet_ServerPlugin)

};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFWorldNet_ServerPlugin)
};

#endif
//////////////////////////////////////////////////////////////////////////

const int NFWorldNet_ServerPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFWorldNet_ServerPlugin::GetPluginName()
{
    return GET_CLASS_NAME(NFWorldNet_ServerPlugin)
}
Пример #10
0
#include "NFScaleModule.h"
#include "NFScalePlugin.h"

#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{

    CREATE_PLUGIN(pm, NFScalePlugin)

};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFScalePlugin)
};

#endif
//////////////////////////////////////////////////////////////////////////

const int NFScalePlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFScalePlugin::GetPluginName()
{
	return GET_CLASS_NAME(NFScalePlugin);
}
Пример #11
0
#include "Tutorial3Plugin.h"
#include "HelloWorld3Module.h"

#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{
    CREATE_PLUGIN(pm, Tutorial3Plugin)
};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, Tutorial3Plugin)
};

#endif
//////////////////////////////////////////////////////////////////////////

const int Tutorial3Plugin::GetPluginVersion()
{
    return 0;
}

const std::string Tutorial3Plugin::GetPluginName()
{
	return GET_CLASS_NAME(Tutorial3Plugin);
}

void Tutorial3Plugin::Install()
{
Пример #12
0
////#include "stdafx.h"
#include "NFConfigPlugin.h"
#include "NFCLogicClassModule.h"
#include "NFCElementInfoModule.h"

#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{
    CREATE_PLUGIN(pm, NFConfigPlugin)
};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFConfigPlugin)
};

#endif

//////////////////////////////////////////////////////////////////////////
NFConfigPlugin::NFConfigPlugin(NFIPluginManager* p)
{
    pPluginManager = p;
}

const int NFConfigPlugin::GetPluginVersion()
{
    return 0;
}
Пример #13
0
#include "NFCCardItemConsumeProcessModule.h"
#include "NFCItemConsumeManagerModule.h"
#include "NFCNPCRefreshModule.h"
#include "NFCRebornItemConsumeProcessModule.h"

#ifdef NF_DYNAMIC_PLUGIN

extern "C"  __declspec( dllexport ) void DllStartPlugin( NFIPluginManager* pm )
{
    CREATE_PLUGIN( pm, NFGameLogicPlugin )

};

extern "C" __declspec( dllexport ) void DllStopPlugin( NFIPluginManager* pm )
{
    DESTROY_PLUGIN( pm, NFGameLogicPlugin )
};

#endif
//////////////////////////////////////////////////////////////////////////

const int NFGameLogicPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFGameLogicPlugin::GetPluginName()
{
    GET_PLUGIN_NAME( NFGameLogicPlugin )
}
#include "NFLoginNet_ServerPlugin.h"
#include "NFCLoginNet_ServerModule.h"

//
//
#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{
    CREATE_PLUGIN(pm, NFLoginNet_ServerPlugin)

};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFLoginNet_ServerPlugin)
};

#endif

//////////////////////////////////////////////////////////////////////////

const int NFLoginNet_ServerPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFLoginNet_ServerPlugin::GetPluginName()
{
    return GET_CLASS_NAME(NFLoginNet_ServerPlugin)
}
Пример #15
0
#include "NFMysqlClusterPlugin.h"
#include "NFCMysqlModule.h"
#include "NFCAsyMysqlModule.h"
#include "NFComm/NFPluginModule/NFIPluginManager.h"

#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{
    CREATE_PLUGIN(pm, NFMysqlClusterPlugin)

};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFMysqlClusterPlugin)
};

#endif


//////////////////////////////////////////////////////////////////////////

const int NFMysqlClusterPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFMysqlClusterPlugin::GetPluginName()
{
	return GET_CLASS_NAME(NFMysqlClusterPlugin);
Пример #16
0
#include "NFCSkillModule.h"
#include "NFCSkillConsumeManagerModule.h"
//
//
#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{

    CREATE_PLUGIN(pm, NFSkillPlugin)

};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFSkillPlugin)
};

#endif
//////////////////////////////////////////////////////////////////////////

const int NFSkillPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFSkillPlugin::GetPluginName()
{
	return GET_CLASS_NAME(NFSkillPlugin);
}
Пример #17
0
#include "NFShopPlugin.h"

//
//
#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{

    CREATE_PLUGIN(pm, NFShopPlugin)

};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFShopPlugin)
};

#endif
//////////////////////////////////////////////////////////////////////////

const int NFShopPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFShopPlugin::GetPluginName()
{
	return GET_CLASS_NAME(NFCShopPlugin);
}
Пример #18
0
#include "NFChatPlugin.h"

//
//
#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{

    CREATE_PLUGIN(pm, NFChatPlugin)

};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFChatPlugin)
};

#endif
//////////////////////////////////////////////////////////////////////////

const int NFChatPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFChatPlugin::GetPluginName()
{
	return GET_CLASS_NAME(NFChatPlugin);
}
#include "NFProxyServerNet_ServerPlugin.h"

//
//
#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{

    CREATE_PLUGIN(pm, NFProxyServerNet_ServerPlugin)

};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFProxyServerNet_ServerPlugin)
};

#endif
//////////////////////////////////////////////////////////////////////////

const int NFProxyServerNet_ServerPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFProxyServerNet_ServerPlugin::GetPluginName()
{
    return GET_CLASS_NAME(NFProxyServerNet_ServerPlugin)
}
Пример #20
0
#include "NFBigMapRedisModule.h"
#include "NFCommonRedisModule.h"
#include "NFMailRedisModule.h"
#include "NFAccountRedisModule.h"

#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{
    CREATE_PLUGIN(pm, NFDBLogicPlugin)

};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFDBLogicPlugin)
};

#endif
//////////////////////////////////////////////////////////////////////////

const int NFDBLogicPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFDBLogicPlugin::GetPluginName()
{
	return GET_CLASS_NAME(NFDBLogicPlugin);
}
Пример #21
0
#include "NFCDBToWorldModule.h"

//
//
#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{

    CREATE_PLUGIN(pm, NFDBNet_ClientPlugin)

};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFDBNet_ClientPlugin)
};

#endif
//////////////////////////////////////////////////////////////////////////

const int NFDBNet_ClientPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFDBNet_ClientPlugin::GetPluginName()
{
	return GET_CLASS_NAME(NFDBNet_ClientPlugin);
}
#include "NFGameServerNet_ServerPlugin.h"

//
//
#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{

    CREATE_PLUGIN(pm, NFGameServerNet_ServerPlugin)

};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFGameServerNet_ServerPlugin)
};

#endif
//////////////////////////////////////////////////////////////////////////

const int NFGameServerNet_ServerPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFGameServerNet_ServerPlugin::GetPluginName()
{
    return GET_CLASS_NAME(NFGameServerNet_ServerPlugin)
}
Пример #23
0
//#include "stdafx.h"
#include "NFDataNoSqlPlugin.h"
#include "NFCDataNoSqlModule.h"
#include "NFCPlatformDataModule.h"

#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{
    CREATE_PLUGIN(pm, NFDataNoSqlPlugin)
};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFDataNoSqlPlugin)
};

#endif
//////////////////////////////////////////////////////////////////////////

const int NFDataNoSqlPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFDataNoSqlPlugin::GetPluginName()
{
    return GET_CLASS_NAME(NFDataNoSqlPlugin)
}
Пример #24
0
#include "NFSceneModule/NFCSceneModule.h"
#include "NFKernelModule/NFCUUIDModule.h"

//
//
#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{
    CREATE_PLUGIN(pm, NFKernelPlugin)

};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFKernelPlugin)
};

#endif

//////////////////////////////////////////////////////////////////////////

const int NFKernelPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFKernelPlugin::GetPluginName()
{
    return GET_CLASS_NAME(NFKernelPlugin)
}
Пример #25
0

#include "NFCLuaScriptModule.h"
#include "NFLuaScriptPlugin.h"

#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{
    CREATE_PLUGIN(pm, NFLuaScriptPlugin)

};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFLuaScriptPlugin)
};

#endif
//////////////////////////////////////////////////////////////////////////

const int NFLuaScriptPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFLuaScriptPlugin::GetPluginName()
{
	return GET_CLASS_NAME(NFLuaScriptPlugin);
}
Пример #26
0
#include "NFCMasterModule.h"
#include "NFMasterServerPlugin.h"

//
//
#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{
    CREATE_PLUGIN(pm, NFMasterServerPlugin)
};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFMasterServerPlugin)
};

#endif
//////////////////////////////////////////////////////////////////////////

const int NFMasterServerPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFMasterServerPlugin::GetPluginName()
{
	return GET_CLASS_NAME(NFMasterServerPlugin);
}
Пример #27
0
// NFAIPlugin.cpp : Defines the exported functions for the DLL application.
//

#include "NFAIPlugin.h"
#include "NFCAIModule.h"

#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{
    CREATE_PLUGIN(pm, NFAIPlugin)
};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFAIPlugin)
};

#endif

//////////////////////////////////////////////////////////////////////////

const int NFAIPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFAIPlugin::GetPluginName()
{
    return GET_CLASS_NAME(NFAIPlugin)
}
Пример #28
0
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*/
#include "NFCWorldLogicModule.h"
#include "NFWorldLogicPlugin.h"

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{
    CREATE_PLUGIN(pm, NFWorldLogicPlugin)
};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFWorldLogicPlugin)
};

//////////////////////////////////////////////////////////////////////////

const int NFWorldLogicPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFWorldLogicPlugin::GetPluginName()
{
    return GET_CLASS_NAME(NFWorldLogicPlugin);
}

void NFWorldLogicPlugin::Install()
Пример #29
0
#include "NFTestPlugin.h"

//
//
#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{

    CREATE_PLUGIN(pm, NFTestPlugin)

};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFTestPlugin)
};

#endif
//////////////////////////////////////////////////////////////////////////

const int NFTestPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFTestPlugin::GetPluginName()
{
	return GET_CLASS_NAME(NFTestPlugin);
}