aboutsummaryrefslogtreecommitdiff
path: root/build/android/gradlew
Commit message (Collapse)AuthorAge
* Android: add Android Studio support, completely redone java part (#9066)Maksim2020-04-15
|
* Update Android java code (#7820)Maksim2018-12-02
| | | | | | | | | | | | | | | Targets SDK 26 as required by the playstore. Fixes screen auto-rotation closing game. Hides on-screen navigation bar if present. Update gradlew. Fix display aspect on 18+/:9 displays (like a Samsung Galaxy S9). Remove small app icons, not required. Fix xml in unpacking activity. Support Android permission: On Android 6.0+ you need to manually give write permission (as required by google). Background during unpacking (just a demo for now). Material Design: no more Android 2 interface. Immersive mode (Android 4.4+ - hide NavBar for fullscreen mode).
* Add gradle wrapper (#4954)Ner'zhul2016-12-24
Gradle wrapper permit to use multiple gradle versions across OS versions
, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU 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. */ #include "serverobject.h" #include <fstream> #include "inventory.h" core::map<u16, ServerActiveObject::Factory> ServerActiveObject::m_types; ServerActiveObject::ServerActiveObject(ServerEnvironment *env, u16 id, v3f pos): ActiveObject(id), m_known_by_count(0), m_removed(false), m_pending_deactivation(false), m_static_exists(false), m_static_block(1337,1337,1337), m_env(env), m_base_position(pos) { } ServerActiveObject::~ServerActiveObject() { } ServerActiveObject* ServerActiveObject::create(u8 type, ServerEnvironment *env, u16 id, v3f pos, const std::string &data) { // Find factory function core::map<u16, Factory>::Node *n; n = m_types.find(type); if(n == NULL) { // If factory is not found, just return. dstream<<"WARNING: ServerActiveObject: No factory for type=" <<type<<std::endl; return NULL; } Factory f = n->getValue(); ServerActiveObject *object = (*f)(env, id, pos, data); return object; } void ServerActiveObject::registerType(u16 type, Factory f) { core::map<u16, Factory>::Node *n; n = m_types.find(type); if(n) return; m_types.insert(type, f); }