aboutsummaryrefslogtreecommitdiff
path: root/build/android/jni
Commit message (Expand)AuthorAge
* Drop libgmp on Android and use mini-gmp (#8047)Loïc Blot2019-01-04
* Android: Add activeobjectmgr.cpp and ieee_float.cpp, sort listSmallJoker2018-12-14
* Move client-specific files to 'src/client' (#7902)Quentin Bazin2018-11-28
* Move touchscreen input handling to base GUIModalMenu classstujones112018-10-29
* Replace auth.txt with SQLite auth database (#7279)Ben Deutsch2018-08-05
* Revert 6587 - Optimize entity-entity collision (#7539)lhofhansl2018-07-08
* Modernize lua read (part 2 & 3): C++ templating assurance (#7410)Loïc Blot2018-06-30
* Android: use c++_shared library instead of c++_staticLoic Blot2018-06-10
* Fix many Android build issuesLoic Blot2018-06-10
* Fix Android build, broken since 87ad4d8SmallJoker2018-04-21
* Add online content repositoryrubenwardy2018-04-19
* Add player:get_meta(), deprecate player attributes (#7202)rubenwardy2018-04-06
* Optimize entity-entity collision (#6587)Vitaliy2018-04-03
* Cleanup sound manager class (#7158)Loïc Blot2018-03-24
* Update mesh collector and move it to a separate file (#6904)Vitaliy2018-03-22
* Add missing file to android buildLoic Blot2018-03-17
* Fix Android build, but there is a remaining linking issue in guiConfirmRegist...Loic Blot2018-03-11
* Android build fixes for c++11stujones112018-03-11
* Android: update tools (gradle, NDK) & prepare to switch to clangLoic Blot2018-03-11
* [CSM] Add functions to create particles and particlespawners. (#6072)red-0012018-01-20
* Game refactor [4/X]: keycache is now owned by InputHandlerLoic Blot2018-01-20
* [CSM] Add basic HUD manipulation. (#6067)red-0012018-01-20
* Android: Update build system for ndk-r15xstujones112017-12-04
* Move files to subdirectories (#6599)Vitaliy2017-11-08
* FormSpec : Add an auto vertical scrollbar to the textareaadelcoding12017-10-09
* Mapgen: Add Carpathian mapgen (#6015)Vaughan Lapsley2017-07-06
* Isolate irrlicht references and use a singleton (#6041)Loïc Blot2017-06-26
* Remove legacy content_abm.{cpp,h}Loïc Blot2017-06-14
* Improve the path select GUI (#5852)red-0012017-06-11
* Revert "Remove deprecated code segments (#5891)"Loïc Blot2017-06-06
* Remove deprecated code segments (#5891)Thomas--S2017-06-04
* Move KeyList & InputHandler from game.h to client/inputhandler.h (#5752)Loïc Blot2017-05-13
* Clean up numeric.h and split FacePositionCache from itShadowNinja2017-05-06
* [CSM] Add camera API (#5609)bigfoot5472017-05-05
* Fix Android build since 2818d3f2244d2146a5cdb61cd41f6561c514f97cLoic Blot2017-04-26
* Player data to Database (#5475)Loïc Blot2017-04-23
* MeshUpdateQueue: Add a MapBlock cache that minimizes the amount of MapBlock c...Perttu Ahola2017-04-17
* Fix android buildLoic Blot2017-04-14
* Update embedded jsoncpp from unk version to 0.10.6 + move libs to lib/ instea...Loïc Blot2017-04-02
* Add missing source to android build (#5496)Uwe Koloska2017-04-01
* Fix undefined references (#5400)Wayward One2017-03-15
* Fix android buildLoic Blot2017-02-08
* Add ItemStack key-value meta storagerubenwardy2017-02-04
* Derive NodeMetaRef from MetaDataRefrubenwardy2017-02-04
* Derive NodeMetadata from Metadatarubenwardy2017-02-04
* Environment & IGameDef code refactoring (#4985)Ner'zhul2017-01-09
* Add raycast.cpp and tileanimation.cpp to Android.mkWayward12017-01-05
* Android: fix build and update depsest312016-12-07
* Add missing remoteplayer.cpp to Android buildNer'zhul2016-10-28
* Fix for failure to find jsoncpp in android build (#4456)Rogier-52016-08-19
s="hl opt">); properties.basedurability = readF1000(is); properties.dd_weight = readF1000(is); properties.dd_crackiness = readF1000(is); properties.dd_crumbliness = readF1000(is); properties.dd_cuttability = readF1000(is); } class CToolDefManager: public IWritableToolDefManager { public: virtual ~CToolDefManager() { clear(); } virtual const ToolDefinition* getToolDefinition(const std::string &toolname) const { core::map<std::string, ToolDefinition*>::Node *n; n = m_tool_definitions.find(toolname); if(n == NULL) return NULL; return n->getValue(); } virtual std::string getImagename(const std::string &toolname) const { const ToolDefinition *def = getToolDefinition(toolname); if(def == NULL) return ""; return def->imagename; } virtual ToolDiggingProperties getDiggingProperties( const std::string &toolname) const { const ToolDefinition *def = getToolDefinition(toolname); // If tool does not exist, just return an impossible if(def == NULL){ // If tool does not exist, try empty name const ToolDefinition *def = getToolDefinition(""); if(def == NULL) // If that doesn't exist either, return default return ToolDiggingProperties(); return def->properties; } return def->properties; } virtual bool registerTool(std::string toolname, const ToolDefinition &def) { infostream<<"registerTool: registering tool \""<<toolname<<"\""<<std::endl; /*core::map<std::string, ToolDefinition*>::Node *n; n = m_tool_definitions.find(toolname); if(n != NULL){ errorstream<<"registerTool: registering tool \""<<toolname <<"\" failed: name is already registered"<<std::endl; return false; }*/ m_tool_definitions[toolname] = new ToolDefinition(def); return true; } virtual void clear() { for(core::map<std::string, ToolDefinition*>::Iterator i = m_tool_definitions.getIterator(); i.atEnd() == false; i++){ delete i.getNode()->getValue(); } m_tool_definitions.clear(); } virtual void serialize(std::ostream &os) { writeU8(os, 0); // version u16 count = m_tool_definitions.size(); writeU16(os, count); for(core::map<std::string, ToolDefinition*>::Iterator i = m_tool_definitions.getIterator(); i.atEnd() == false; i++){ std::string name = i.getNode()->getKey(); ToolDefinition *def = i.getNode()->getValue(); // Serialize name os<<serializeString(name); // Serialize ToolDefinition and write wrapped in a string std::ostringstream tmp_os(std::ios::binary); def->serialize(tmp_os); os<<serializeString(tmp_os.str()); } } virtual void deSerialize(std::istream &is) { // Clear everything clear(); // Deserialize int version = readU8(is); if(version != 0) throw SerializationError( "unsupported ToolDefManager version"); u16 count = readU16(is); for(u16 i=0; i<count; i++){ // Deserialize name std::string name = deSerializeString(is); // Deserialize a string and grab a ToolDefinition from it std::istringstream tmp_is(deSerializeString(is), std::ios::binary); ToolDefinition def; def.deSerialize(tmp_is); // Register registerTool(name, def); } } private: // Key is name core::map<std::string, ToolDefinition*> m_tool_definitions; }; IWritableToolDefManager* createToolDefManager() { return new CToolDefManager(); }