mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
30 lines
683 B
C++
30 lines
683 B
C++
#include "stdafx.h"
|
|
#include "Teleporter.h"
|
|
|
|
#include "Application.h"
|
|
#include "FunctionMarshaller.h"
|
|
#include "util/Statistics.h"
|
|
#include "v8datamodel/TeleportService.h"
|
|
|
|
namespace RBX {
|
|
|
|
static boost::thread releaseGameThread;
|
|
|
|
void Teleporter::initialize(Application* app,
|
|
FunctionMarshaller* marshaller)
|
|
{
|
|
this->app = app;
|
|
this->marshaller = marshaller;
|
|
|
|
TeleportService::SetCallback(this);
|
|
TeleportService::SetBaseUrl(GetBaseURL().c_str());
|
|
}
|
|
|
|
void Teleporter::doTeleport(const std::string& url, const std::string& ticket,
|
|
const std::string& script)
|
|
{
|
|
marshaller->Submit(boost::bind(&Application::Teleport, app, url, ticket, script));
|
|
}
|
|
|
|
} // namespace RBX
|