aboutsummaryrefslogtreecommitdiff
path: root/src/localplayer.h
Commit message (Expand)AuthorAge
...
* RealBadAngel's patch which allows the lua api to read pressed player keys. Th...MirceaKitsune2012-11-25
* Update attachments at the ending of the addToScene function for parents. And ...MirceaKitsune2012-11-25
* Add disable_jump and fall_damage_add_percent node groupsPerttu Ahola2012-09-01
* Fix hovering after mining a block underneath you while sneakingMatthew I2012-07-21
* Switch the license to be LGPLv2/later, with small parts still remaining as GP...Perttu Ahola2012-06-05
* Add 'fly' and 'fast' privileges and the underlying privileges-to-client systemPerttu Ahola2012-03-31
ss="hl com">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 FILECACHE_HEADER #define FILECACHE_HEADER #include <string> #include <iostream> class FileCache { public: /* 'dir' is the file cache directory to use. */ FileCache(std::string dir): m_dir(dir) { } bool update(const std::string &name, const std::string &data); bool load(const std::string &name, std::ostream &os); private: std::string m_dir; bool loadByPath(const std::string &path, std::ostream &os); bool updateByPath(const std::string &path, const std::string &data); }; #endif