BlockColor-Engine/src/porting_ios.h

50 lines
1.4 KiB
C++

/*
BlockColor
Copyright (C) 2014-2019 Maksim Gamarnik [MoNTE48] MoNTE48@mail.ua
Copyright (C) 2016-2019 sfan5
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 3.0 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __PORTING__IOS_H__
#define __PORTING__IOS_H__
#ifndef __IOS__
#error This file should only be included on iOS
#endif
#if 0 // toggle to 1 for ads
#define ADS
#include "ads.h"
#endif
namespace porting {
void initializePathsiOS();
void copyAssets();
void setViewController(void *v);
void showInputDialog(const std::string &acceptButton, const std::string &hint,
const std::string &current, int editType);
int getInputDialogState();
std::string getInputDialogValue();
inline void notifyAbortLoading() {}
void notifyServerConnect(bool is_multiplayer);
void notifyExitGame();
}
#endif