BlockColor-Engine/src/porting_ios.h

50 lines
1.4 KiB
C
Raw Normal View History

2019-04-01 12:33:19 -07:00
/*
BlockColor
2019-04-01 12:33:19 -07:00
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.
*/
2016-11-05 15:14:22 -07:00
#ifndef __PORTING__IOS_H__
#define __PORTING__IOS_H__
#ifndef __IOS__
#error This file should only be included on iOS
#endif
2018-12-26 13:59:09 -08:00
#if 0 // toggle to 1 for ads
#define ADS
#include "ads.h"
#endif
2016-11-05 15:14:22 -07:00
namespace porting {
2019-04-01 12:33:19 -07:00
void initializePathsiOS();
void copyAssets();
2017-08-16 05:11:17 -07:00
void setViewController(void *v);
void showInputDialog(const std::string &acceptButton, const std::string &hint,
const std::string &current, int editType);
2017-08-16 05:11:17 -07:00
int getInputDialogState();
std::string getInputDialogValue();
2018-12-26 13:59:09 -08:00
2019-04-01 12:33:19 -07:00
inline void notifyAbortLoading() {}
2018-12-26 13:59:09 -08:00
void notifyServerConnect(bool is_multiplayer);
void notifyExitGame();
2016-11-05 15:14:22 -07:00
}
#endif