summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/StatisticsSerializer.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-11-11Miscellaneous fixes (#5320)Tiger Wang1-15/+4
* Protocol: update Abilities flags + Add Spectator handling * BioGen: move <iostream> include * ClientHandle: rename Respawn packet dimension check flag * Make it clearer what it's doing. * ClientHandle: move ProcessProtocolIn calls to World * Player: remove some redundant initialisation * Player: UpdateCapabilities enables flight for spectators * Produce growth: improve comments * ClientHandle: run unload checks using delta time * Fix forgotten initialisation of time member
2021-07-31Remove one level of indent in statistics serialiserTiger Wang1-58/+55
2021-07-31It is time to remove the statistics upgrade mapTiger Wang1-106/+0
2021-05-04Rename files to match codeTiger Wang1-4/+4
2021-05-03Add player statistics to API (#5193)nshah251-102/+99
* Fixed issue #5166 Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-12-18Warnings improvementsTiger Wang1-14/+2
* Turn off global-constructors warning. These are needed to implement cRoot signal handler functionality * Add Clang flags based on version lookup instead of a compile test. The CMake config process is single threaded and slow enough already * Reduced GetStackValue verbosity + Clarify EnchantmentLevel, StayCount, AlwaysTicked, ViewDistance signedness + Give SettingsRepositoryInterface a move constructor to simplify main.cpp code - Remove do {} while (false) construction in redstone handler
2020-11-23Adding new monster types to enum and saving/loading for easier future implementation (#4941)12xx121-1/+1
* added new monster types to enum added string <-> enum conversion in namespace serializer added loading functions added to saving * renamed zombie pigman to zombified piglins in enum Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-10-05Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell101-99/+108
* Fix cmake not adding Werror on clang, and _lots_ of warnings * WIP: Build fixes * Cannot make intermediate blockhandler instance * Tiger's changes * Fix BitIndex check * Handle invalid NextState values in cMultiVersionProtocol Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-09-12Use tracing for explosions (#4845)Tiger Wang1-1/+0
* TNT: Implement tracing algorithm + Add intensity tracing * Fix iterating over all players to SendExplosion, even those not in range * Implemented TNT entity interaction * Fixed misaligned destruction tracing * Finalise TNT algorithm - Remove BlockArea and just use chunks Using SetBlock makes it so that we can update everything properly, and does appear to be faster. * BlockInfo learns about explosion attentuation * Rename Explodinator parameters * TNT: pull block destruction into common function Co-authored-by: Alexander Harkness <me@bearbin.net>
2020-08-21StatSerializer: use std::moveTiger Wang1-5/+5
2020-08-21Make StatSerializer a namespaceTiger Wang1-71/+75
2020-08-19Add statistics upgrade mappingTiger Wang1-11/+118
2020-08-19Add Statistics and Achievements for newer Network standards12xx121-76/+36
2020-05-09Update submodules (#4727)peterbell101-4/+3
Closes #4708 This updates jsoncpp, mbedtls, TCLAP and SQLiteCpp to their latest stable release. A few additional changes were needed: * jsoncpp deprecated Reader, FastWriter and StyledWriter which I've replaced with some helper functions in JsonUtils.cpp * SQLiteCpp changed how it builds with external sqlite libraries, now expecting them to be installed. The simplest path was to remove sqlite from cuberite's submodule and just use SQLiteCpp's internal version.
2020-05-07Remove old Android leftovers (#4722)Mat1-4/+4
2018-01-03Add the fmt library (#4065)peterbell101-1/+1
* Replaces AppendVPrintf with fmt::sprintf * fmt::ArgList now used as a type safe alternative to varargs. * Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu. * Adds FLOG functions to log with fmt's native formatting style.
2017-09-07Switched player statistic store to save with UUID filenames. (#4002)Lane Kolbly1-3/+8
2015-10-26Update Loops required for JsonCPPLukas Pioch1-2/+2
2015-05-24Made -Weverything an error.tycho1-3/+3
2015-05-09More style checking.Mattes D1-1/+1
Spaces around some operators are checked.
2014-05-13Fixesandrew1-2/+5
2014-05-11Fixed stat serializationandrew1-5/+22
2014-05-11Statistic Managerandrew1-0/+126