mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
29 lines
535 B
Plaintext
29 lines
535 B
Plaintext
/*
|
|
* GameVerbs.mm
|
|
* iOS
|
|
*
|
|
* Created on 5/19/14
|
|
* Copyright 2014 ROBLOX. All rights reserved.
|
|
*
|
|
*/
|
|
|
|
#import "PlaceLauncher.h"
|
|
|
|
#include "GameVerbs.h"
|
|
#include "RobloxView.h"
|
|
|
|
#include "v8datamodel/GameBasicSettings.h"
|
|
|
|
LeaveGameVerb::LeaveGameVerb(RobloxView *pRobloxView, VerbContainer* container) :
|
|
Verb(container, "Exit")
|
|
,robloxView(pRobloxView)
|
|
{
|
|
}
|
|
|
|
void LeaveGameVerb::doIt(RBX::IDataState* dataState)
|
|
{
|
|
[[PlaceLauncher sharedInstance] leaveGame:YES];
|
|
|
|
RBX::GlobalBasicSettings::singleton()->saveState();
|
|
}
|