mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 21:27:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user