/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
iOS/SharedCode/RobloxView.h
77 строк
2 KB
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
#pragma once #include "boost/shared_ptr.hpp" #include "boost/scoped_ptr.hpp" #include "boost/thread.hpp" #include "v8datamodel/game.h" #include "Util/KeyCode.h" #include "G3D/Vector2.h" #include "rbx/signal.h" namespace RBX { class DataModel; class ViewBase; class FunctionMarshaller; class UserInputService; namespace Tasks { class Sequence; } namespace Reflection { class PropertyDescriptor; } } class RobloxView { boost::shared_ptr<RBX::ViewBase> view; boost::shared_ptr<RBX::Game> game; boost::scoped_ptr<class LeaveGameVerb> leaveGameVerb; RBX::FunctionMarshaller* marshaller; rbx::signals::scoped_connection placeIDChangeConnection; boost::shared_ptr<RBX::Tasks::Sequence> sequence; class RenderJob; boost::shared_ptr<RenderJob> renderJob; static boost::shared_ptr<RobloxView> rbxView; void doTeleport(std::string url, std::string ticket, std::string script); void onPlaceIDChanged(const RBX::Reflection::PropertyDescriptor* desc); public: RobloxView(void* wnd, unsigned int width, unsigned int height); ~RobloxView(void); // request rendering stop as the app goes to background void requestStopRenderingForBackgroundMode(); void requestResumeRendering(); void newGameDidStart(); void setBounds(unsigned int width, unsigned int height); static RobloxView *create_view(shared_ptr<RBX::Game> game, void* wnd, unsigned int width, unsigned int height); boost::shared_ptr<RBX::DataModel> getDataModel() { return game->getDataModel(); } boost::shared_ptr<RBX::Game> getGame() { return game; } boost::shared_ptr<RBX::ViewBase> getView() { return view; } private: unsigned int width; unsigned int height; void defineConcurrencyRules(); static void bindWorkspace(boost::shared_ptr<RBX::ViewBase> view, boost::shared_ptr<RBX::DataModel> const dataModel); void completeViewPrep(shared_ptr<RBX::Game> game); };