Loïc Blot
13e995b811
Modernize src/c* src/d* and src/e* files ( #6263 )
...
* Modernize src/c* src/d* and src/e* files
* default operator
* redundant init
* delete default constructors on CraftDefinition childs (never used)
* fix some missing init values
* const ref fix reported by clang-tidy
* ranged-based for loops
* simple conditions & returns
* empty stl function instead of size
* emplace_back stl function instead of push_back + construct temp obj
* auto for some iterators
* code style fixes
* c++ stl headers instead of C stl headers (stdio.h -> cstdio)
2017-08-17 23:02:50 +02:00
Loïc Blot
921151d97a
C++ modernize: Pragma once ( #6264 )
...
* Migrate cpp headers to pragma once
2017-08-17 22:19:39 +02:00
Loïc Blot
29ab20c272
Player data to Database ( #5475 )
...
* Player data to Database
Add player data into databases (SQLite3 & PG only)
PostgreSQL & SQLite: better POO Design for databases
Add --migrate-players argument to server + deprecation warning
* Remove players directory if empty
2017-04-23 14:35:08 +02:00
Loïc Blot
987eb2b761
Clang-format: trivial fix on some headers ( #5495 )
...
Fix some headers style and remove them from whitelist
2017-04-01 14:48:16 +02:00
Rogier
4d4b8bb8a4
Move PP() and PP2() macros to basic_macros.h
...
Instead of redefining them everywhere.
2016-12-24 00:32:50 +00:00
Loic Blot
143401451c
DB::loadBlock copy removal & DB backend cleanup
...
* Remove the copy from db::loadBlock by using a pointer to the destination
* cleanup db backend, the child backend doesn't have to set their functions as virtual
2016-05-17 06:52:16 +02:00
ShadowNinja
708337dfc2
Clean up database API and save the local map on an interval
2015-03-06 00:20:45 -05:00
Loic Blot
718bcafd51
Replace std::list by std::vector into ServerMap::listAllLoadableBlocks ServerMap::listAllLoadedBlocks and their database backends.
...
This adds a speedup on database migration and /clearobjects command
2015-02-17 14:35:44 +01:00
kwolekr
9736548720
Add ability to delete MapBlocks from map
...
Also add a Lua API and chatcommand for this
2015-01-15 16:48:56 -05:00
sfan5
eec456be63
Move MapBlock (de)serializing code out of Database class
2014-07-12 17:38:17 +02:00
kwolekr
8b3ed78e53
Don't unload blocks if save failed
...
Improve error handling in saveBlock()
2014-07-07 01:20:25 -04:00
ShadowNinja
41bc24477b
Revert binary database block position encoding
...
This reverts commits a2003b0d553c7223a61c75e5dad79ea68e058ba2 and 54ffe2e5de9ce44129f84f4748743f893b75fda7.
These weren't correct. Add a black magic warning instead.
2014-04-23 15:39:33 -04:00
ShadowNinja
54ffe2e5de
Use binary operators rather than "Python modulo" in decoding block positions
2014-04-15 16:09:15 -04:00
ShadowNinja
18577f2527
Replace usage of long long with u64/s64
2014-03-12 19:37:19 -04:00
Kahrl
95e4a93b1b
Add license headers and remove useless includes
2013-09-10 16:09:30 +02:00
Sfan5
f1e4a671dc
Use STL containers instead of irr::core::list
2013-09-09 22:50:51 +02:00
Sfan5
7e44c2ace1
Make it compile
2013-09-09 22:50:50 +02:00
Ilya Zhuravlev
58841ef12f
Add dummy and LevelDB database backends
2013-09-09 22:50:50 +02:00