2018-03-07 08:14:42 +01:00
|
|
|
#include <Script/NativeScriptApi.h>
|
|
|
|
|
2021-11-27 00:53:57 +01:00
|
|
|
#ifdef _WIN32
|
|
|
|
#include <memory>
|
|
|
|
#include <Service.h>
|
|
|
|
#endif
|
|
|
|
|
2018-03-07 08:14:42 +01:00
|
|
|
@ScriptIncludes@
|
|
|
|
|
2018-11-13 21:34:44 +11:00
|
|
|
const Sapphire::ScriptAPI::ScriptObject* ptrs[] =
|
2018-03-07 08:14:42 +01:00
|
|
|
{
|
|
|
|
@ScriptNames@
|
|
|
|
nullptr
|
|
|
|
};
|
|
|
|
|
2021-11-27 00:53:57 +01:00
|
|
|
#ifdef _WIN32
|
2022-02-10 18:50:44 +01:00
|
|
|
namespace Sapphire
|
|
|
|
{
|
|
|
|
class InstanceObjectCache;
|
|
|
|
}
|
|
|
|
|
2021-11-27 00:53:57 +01:00
|
|
|
namespace Sapphire::Data
|
|
|
|
{
|
|
|
|
class ExdData;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Sapphire::World::Manager
|
|
|
|
{
|
|
|
|
class TerritoryMgr;
|
2021-12-02 22:58:36 +01:00
|
|
|
class LinkshellMgr;
|
2022-02-07 23:08:29 +01:00
|
|
|
class WarpMgr;
|
2022-02-16 13:50:10 +01:00
|
|
|
class RNGMgr;
|
|
|
|
}
|
|
|
|
|
|
|
|
extern "C" EXPORT void win32initRngMgr( std::shared_ptr< Sapphire::World::Manager::RNGMgr > rngMgr )
|
|
|
|
{
|
|
|
|
Sapphire::Common::Service< Sapphire::World::Manager::RNGMgr >::set( rngMgr );
|
2021-11-27 00:53:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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 );
|
|
|
|
}
|
2021-12-02 22:58:36 +01:00
|
|
|
extern "C" EXPORT void win32initLinkshell( std::shared_ptr< Sapphire::World::Manager::LinkshellMgr > lsMgr )
|
|
|
|
{
|
|
|
|
Sapphire::Common::Service< Sapphire::World::Manager::LinkshellMgr >::set( lsMgr );
|
|
|
|
}
|
2022-02-07 23:08:29 +01:00
|
|
|
|
|
|
|
extern "C" EXPORT void win32initWarpMgr( std::shared_ptr< Sapphire::World::Manager::WarpMgr > warpMgr )
|
|
|
|
{
|
|
|
|
Sapphire::Common::Service< Sapphire::World::Manager::WarpMgr >::set( warpMgr );
|
|
|
|
}
|
2022-02-10 18:50:44 +01:00
|
|
|
|
|
|
|
extern "C" EXPORT void win32initIObjectCache( std::shared_ptr< Sapphire::InstanceObjectCache > ioCache )
|
|
|
|
{
|
|
|
|
Sapphire::Common::Service< Sapphire::InstanceObjectCache >::set( ioCache );
|
|
|
|
}
|
2021-11-27 00:53:57 +01:00
|
|
|
#endif
|
|
|
|
|
2018-11-13 21:34:44 +11:00
|
|
|
extern "C" EXPORT const Sapphire::ScriptAPI::ScriptObject** getScripts()
|
2018-03-07 08:14:42 +01:00
|
|
|
{
|
|
|
|
return ptrs;
|
|
|
|
}
|