mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 22:57:45 +00:00
46 lines
1,009 B
C++
46 lines
1,009 B
C++
#include <Script/NativeScriptApi.h>
|
|
|
|
#ifdef _WIN32
|
|
#include <memory>
|
|
#include <Service.h>
|
|
#endif
|
|
|
|
@ScriptIncludes@
|
|
|
|
const Sapphire::ScriptAPI::ScriptObject* ptrs[] =
|
|
{
|
|
@ScriptNames@
|
|
nullptr
|
|
};
|
|
|
|
#ifdef _WIN32
|
|
namespace Sapphire::Data
|
|
{
|
|
class ExdData;
|
|
}
|
|
|
|
namespace Sapphire::World::Manager
|
|
{
|
|
class TerritoryMgr;
|
|
class LinkshellMgr;
|
|
}
|
|
|
|
extern "C" EXPORT void win32initExd( std::shared_ptr< Sapphire::Data::ExdData > exdData )
|
|
{
|
|
Sapphire::Common::Service< Sapphire::Data::ExdData >::set( exdData );
|
|
}
|
|
|
|
extern "C" EXPORT void win32initTeri( std::shared_ptr< Sapphire::World::Manager::TerritoryMgr > teriMgr )
|
|
{
|
|
Sapphire::Common::Service< Sapphire::World::Manager::TerritoryMgr >::set( teriMgr );
|
|
}
|
|
extern "C" EXPORT void win32initLinkshell( std::shared_ptr< Sapphire::World::Manager::LinkshellMgr > lsMgr )
|
|
{
|
|
Sapphire::Common::Service< Sapphire::World::Manager::LinkshellMgr >::set( lsMgr );
|
|
}
|
|
#endif
|
|
|
|
extern "C" EXPORT const Sapphire::ScriptAPI::ScriptObject** getScripts()
|
|
{
|
|
return ptrs;
|
|
}
|